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:
Gustavo Sverzut Barbieri 2010-05-03 21:14:33 +00:00
parent c9113b4f48
commit 936465b774
1 changed files with 3 additions and 0 deletions

View File

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