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.
devs/bu5hm4n/pointer-fix
Carsten Haitzler 2 years ago
parent 28a43e0e7c
commit 1fefd5aef9
  1. 3
      src/modules/mixer/e_mod_main.c

@ -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;

Loading…
Cancel
Save