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 14:41:57 +0100
commitd8eae4d4e5f4c8faa4bd2f4d8bd2bf3330e9c697 (patch)
treeef49067f9f0618ede1fddfc8bd3a1d06b53b7f87
parent23f5a5092cdb8fff0efada89dfeadf1deceef3b9 (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 04326b0cdf..804a653ffd 100644
--- a/src/lib/ecore/ecore_exe_win32.c
+++ b/src/lib/ecore/ecore_exe_win32.c
@@ -90,6 +90,7 @@ _ecore_exe_close_cb(void *data,
90 e->exited = 1; 90 e->exited = 1;
91 e->pid = exe->pid; 91 e->pid = exe->pid;
92 e->exe = obj; 92 e->exe = obj;
93 exe->h_close = NULL; // It's going to get deleted in the next callback.
93 94
94 ecore_event_add(ECORE_EXE_EVENT_DEL, e, 95 ecore_event_add(ECORE_EXE_EVENT_DEL, e,
95 _ecore_exe_event_del_free, NULL); 96 _ecore_exe_event_del_free, NULL);