summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorVincent Torri <vincent dot torri at gmail dot com>2015-09-29 23:47:10 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-10-12 17:21:59 -0700
commitce4ef2cf91144df407614cfe91c113625865922d (patch)
treecbbccd20fe74477a6c462a132a480fed95f3be11 /src/lib
parentdaad69d51bd8544a350b0821f8f2ac2276659b1a (diff)
ecore_exe: close handles only if they are valid
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore/ecore_exe_win32.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ecore/ecore_exe_win32.c b/src/lib/ecore/ecore_exe_win32.c
index 73957d7d5d..d488d5a9b3 100644
--- a/src/lib/ecore/ecore_exe_win32.c
+++ b/src/lib/ecore/ecore_exe_win32.c
@@ -382,8 +382,8 @@ _impl_ecore_exe_eo_base_finalize(Eo *obj, Ecore_Exe_Data *exe)
382 SECURITY_ATTRIBUTES sa; 382 SECURITY_ATTRIBUTES sa;
383 STARTUPINFO si; 383 STARTUPINFO si;
384 PROCESS_INFORMATION pi; 384 PROCESS_INFORMATION pi;
385 HANDLE child_pipe_read; 385 HANDLE child_pipe_read = NULL;
386 HANDLE child_pipe_error; 386 HANDLE child_pipe_error = NULL;
387 const char *shell = NULL; 387 const char *shell = NULL;
388 Ecore_Exe_Event_Add *e; 388 Ecore_Exe_Event_Add *e;
389 Ecore_Exe_Flags flags; 389 Ecore_Exe_Flags flags;
@@ -504,8 +504,8 @@ _impl_ecore_exe_eo_base_finalize(Eo *obj, Ecore_Exe_Data *exe)
504 * the pipe will not close when the child process exits and the 504 * the pipe will not close when the child process exits and the
505 * ReadFile will hang. 505 * ReadFile will hang.
506 */ 506 */
507 CloseHandle(child_pipe_read); 507 IF_FN_DEL(CloseHandle, child_pipe_read);
508 CloseHandle(child_pipe_error); 508 IF_FN_DEL(CloseHandle, child_pipe_error);
509 509
510 /* be sure that the child process is running */ 510 /* be sure that the child process is running */
511 /* FIXME: This does not work if the child is an EFL-based app */ 511 /* FIXME: This does not work if the child is an EFL-based app */