forked from enlightenment/efl
Ecore exe win32: Fix double-free errors.
As reported by vtorri, sometimes ecore_exe on win32 will encounter double free issues. This was because the variable was freed, but not set to NULL as expected by the cleanup function. Fixes T2675 @fix
This commit is contained in:
parent
23f5a5092c
commit
d8eae4d4e5
|
@ -90,6 +90,7 @@ _ecore_exe_close_cb(void *data,
|
|||
e->exited = 1;
|
||||
e->pid = exe->pid;
|
||||
e->exe = obj;
|
||||
exe->h_close = NULL; // It's going to get deleted in the next callback.
|
||||
|
||||
ecore_event_add(ECORE_EXE_EVENT_DEL, e,
|
||||
_ecore_exe_event_del_free, NULL);
|
||||
|
|
Loading…
Reference in New Issue