Merge "res_stasis: Add control ref to playback and recording structs." into 13

This commit is contained in:
zuul
2016-03-31 13:39:03 -05:00
committed by Gerrit Code Review
7 changed files with 62 additions and 10 deletions

View File

@@ -364,6 +364,7 @@ static void recording_dtor(void *obj)
struct stasis_app_recording *recording = obj;
ast_free(recording->absolute_name);
ao2_cleanup(recording->control);
ao2_cleanup(recording->options);
}
@@ -419,6 +420,7 @@ struct stasis_app_recording *stasis_app_control_record(
ao2_ref(options, +1);
recording->options = options;
ao2_ref(control, +1);
recording->control = control;
recording->state = STASIS_APP_RECORDING_STATE_QUEUED;