emotion_generic: clean up event handlers on fork failure

Summary:
this case would guarantee a crash if the module was ever unloaded
and the event handlers were called, and it leaks otherwise

@fix

Reviewers: ManMower, devilhorns, bu5hm4n

Reviewed By: ManMower, bu5hm4n

Subscribers: cedric, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6296
This commit is contained in:
Mike Blumenkrantz 2018-06-19 13:29:16 -04:00
parent ba771f8b69
commit 90cb995ac9
1 changed files with 4 additions and 0 deletions

View File

@ -933,6 +933,10 @@ _fork_and_exec(Emotion_Generic_Video *ev)
if (!_player_exec(ev))
{
eina_stringshare_del(ev->shmname);
ecore_event_handler_del(ev->player_add);
ecore_event_handler_del(ev->player_del);
ecore_event_handler_del(ev->player_data);
ERR("could not start player.");
return EINA_FALSE;
}