mixer - fix exe handler del and handle to stop crashes after mixer run

running emixer from the mixer module popup was resulting in crashes.
it was this exe event handler handle and leaving a dangling garbage
ptr after it was deleted.

@fix
This commit is contained in:
Carsten Haitzler 2018-05-19 00:58:03 +09:00 committed by Mike Blumenkrantz
parent a451626cc6
commit 57b2988e7a
1 changed files with 4 additions and 2 deletions

View File

@ -432,8 +432,10 @@ _emixer_del_cb(void *data EINA_UNUSED, int type EINA_UNUSED,
{
mixer_context->emixer = NULL;
if (mixer_context->emix_event_handler)
ecore_event_handler_del(mixer_context->emix_event_handler);
{
ecore_event_handler_del(mixer_context->emix_event_handler);
mixer_context->emix_event_handler = NULL;
}
return EINA_TRUE;
}