raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=fc7d300e629bc65fa7b23d8b40980eea32fff591

commit fc7d300e629bc65fa7b23d8b40980eea32fff591
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Jul 1 17:29:01 2014 +0900

    fix 2 ecore_exe magic complaints - inst->exe is garbage.
    
    this is only the case when the inst is a phony - so filter these out
---
 src/bin/e_exec.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_exec.c b/src/bin/e_exec.c
index b283d49..cf35049 100644
--- a/src/bin/e_exec.c
+++ b/src/bin/e_exec.c
@@ -679,7 +679,10 @@ _e_exec_instance_free(E_Exec_Instance *inst)
         e_object_unref(E_OBJECT(ec));
      }
    if (inst->desktop) efreet_desktop_free(inst->desktop);
-   if (inst->exe) ecore_exe_data_set(inst->exe, NULL);
+   if (!inst->phony)
+     {
+        if (inst->exe) ecore_exe_data_set(inst->exe, NULL);
+     }
    free(inst);
 }
 
@@ -824,7 +827,7 @@ _e_exec_startup_id_pid_find(const Eina_Hash *hash 
__UNUSED__, const void *key __
             ((search->startup_id > 0) &&
              (search->startup_id == inst->startup_id)) ||
 
-            ((inst->exe) && (search->pid > 1) &&
+            ((inst->exe) && (search->pid > 1) && (!inst->phony) &&
              (search->pid == ecore_exe_pid_get(inst->exe))))
           {
              search->inst = inst;

-- 


Reply via email to