mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merge "res_stasis: Add control ref to playback and recording structs." into 13
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user