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
parent ab1360c224
commit 7c6702e2fd
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;
}