summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-10-13 14:31:29 +0100
committerTom Hacohen <tom@stosb.com>2015-10-13 16:07:39 +0100
commitf51af42745391bcac642c04dd7e5cc8c8cad3807 (patch)
treed24970f5f878f556978eda27e9b8591ff209e1a5
parentc94dc8c0f75be18d903a200b1fc5811dd207a0b1 (diff)
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
-rw-r--r--src/lib/ecore/ecore_exe_win32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c
index 7da75fd1d1..b34dd720f0 100644
--- a/src/lib/ecore/ecore_exe_win32.c
+++ b/src/lib/ecore/ecore_exe_win32.c
@@ -62,6 +62,7 @@ _ecore_exe_close_cb(void *data,
62 e->exited = 1; 62 e->exited = 1;
63 e->pid = exe->pid; 63 e->pid = exe->pid;
64 e->exe = obj; 64 e->exe = obj;
65 exe->h_close = NULL; // It's going to get deleted in the next callback.
65 66
66 ecore_event_add(ECORE_EXE_EVENT_DEL, e, 67 ecore_event_add(ECORE_EXE_EVENT_DEL, e,
67 _ecore_exe_event_del_free, NULL); 68 _ecore_exe_event_del_free, NULL);