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:
Tom Hacohen 2015-10-13 14:31:29 +01:00
parent 23f5a5092c
commit d8eae4d4e5
1 changed files with 1 additions and 0 deletions

View File

@ -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);