raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=1fefd5aef96cb709783e82e85c67a4e3a5c92b78

commit 1fefd5aef96cb709783e82e85c67a4e3a5c92b78
Author: Carsten Haitzler <ras...@rasterman.com>
Date:   Wed Jul 7 11:11:05 2021 +0100

    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.
---
 src/modules/mixer/e_mod_main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/modules/mixer/e_mod_main.c b/src/modules/mixer/e_mod_main.c
index 175722cb1..c86b650e7 100644
--- a/src/modules/mixer/e_mod_main.c
+++ b/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;
 

-- 


Reply via email to