mixer - fix accesses to invalid objects

one was a result of not turning off the source monitor and the other
not nulling out an obj handle.
This commit is contained in:
Carsten Haitzler 2021-07-07 11:11:05 +01:00
parent 28a43e0e7c
commit 1fefd5aef9
1 changed files with 3 additions and 0 deletions

View File

@ -365,10 +365,12 @@ _popup_del(Instance *inst)
inst->recslider = NULL;
inst->reccheck = NULL;
inst->recbx = NULL;
inst->recic = NULL;
inst->recvu = NULL;
inst->recording_box = NULL;
emix_event_callback_del(_cb_emix_event, inst);
if (inst->mon_data.sink) _sink_unmonitor(inst, inst->mon_data.sink);
if (inst->recmon_data.source) _source_unmonitor(inst, inst->recmon_data.source);
E_FREE_FUNC(inst->popup, e_object_del);
}
@ -693,6 +695,7 @@ _popup_recording_fill(Instance *inst)
inst->recslider = NULL;
inst->reccheck = NULL;
inst->recbx = NULL;
inst->recic = NULL;
inst->recvu = NULL;
inst->recording_box = NULL;