forked from enlightenment/efl
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:
parent
ba771f8b69
commit
90cb995ac9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue