From d8eae4d4e5f4c8faa4bd2f4d8bd2bf3330e9c697 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 13 Oct 2015 14:31:29 +0100 Subject: [PATCH] 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 --- src/lib/ecore/ecore_exe_win32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c index 04326b0..804a653 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, 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); -- 2.7.4