forked from enlightenment/enlightenment
don't let stale pointers around.
This fixes the bug when one adds a mixer, it becomes the default, then removes it and use one of the global volume modifiers, it would use the stale pointer. TODO: a way to configure the volume independently of a shelf gadget. SVN revision: 48593
This commit is contained in:
parent
c9113b4f48
commit
936465b774
|
@ -905,6 +905,9 @@ _gc_shutdown(E_Gadcon_Client *gcc)
|
|||
inst->conf->instance = NULL;
|
||||
ctxt->instances = eina_list_remove(ctxt->instances, inst);
|
||||
|
||||
if (ctxt->default_instance == inst)
|
||||
ctxt->default_instance = NULL;
|
||||
|
||||
E_FREE(inst);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue