diff options
author | zuul <zuul@gerrit.asterisk.org> | 2016-03-31 13:20:55 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-03-31 13:20:55 -0500 |
commit | e2a8033d0966f9ce858bbe5a6dc9155ea48e095f (patch) | |
tree | 747fec094659c039a64d97cf7097451c36652a9a /res/res_stasis_recording.c | |
parent | 0ec3299c5fd97ca3f85531fb0fadb6feb932c0cc (diff) | |
parent | 0ea742d33a89c8d1d3b92eceb833cbe79faab954 (diff) |
Merge "res_stasis: Add control ref to playback and recording structs."
Diffstat (limited to 'res/res_stasis_recording.c')
-rw-r--r-- | res/res_stasis_recording.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_stasis_recording.c b/res/res_stasis_recording.c index 548212419..af5c41e87 100644 --- a/res/res_stasis_recording.c +++ b/res/res_stasis_recording.c @@ -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; |