Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_exec.c 


Log Message:
Check that we have a valid exe before calling ecore_exe_free. See bug #122
for more information.
Fix some formatting issues.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_exec.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_exec.c    26 Jul 2007 12:37:52 -0000      1.7
+++ e_exec.c    30 Jul 2007 19:37:30 -0000      1.8
@@ -118,7 +118,8 @@
        launch->zone = zone;
        e_object_ref(E_OBJECT(launch->zone));
      }
-   if (launch_method) launch->launch_method = 
evas_stringshare_add(launch_method);
+   if (launch_method) 
+     launch->launch_method = evas_stringshare_add(launch_method);
 
    if (desktop)
      {
@@ -128,9 +129,7 @@
          efreet_desktop_command_get(desktop, files, _e_exec_cb_exec, launch);
      }
    else
-     {
-       _e_exec_cb_exec(launch, NULL, strdup(exec), 0);
-     }
+     _e_exec_cb_exec(launch, NULL, strdup(exec), 0);
    return 1;
 }
 
@@ -260,8 +259,9 @@
          }
        e_exec_start_pending = evas_list_append(e_exec_start_pending, desktop);
      }
-   else
+   else if (exe) 
      ecore_exe_free(exe);
+   
    if (!remaining)
      {
        if (launch->launch_method) evas_stringshare_del(launch->launch_method);
@@ -291,7 +291,7 @@
    ev = event;
    if (!ev->exe) return 1;
    if (!(ecore_exe_tag_get(ev->exe) && 
-       (!strcmp(ecore_exe_tag_get(ev->exe), "E/exec")))) return 1;
+        (!strcmp(ecore_exe_tag_get(ev->exe), "E/exec")))) return 1;
    inst = ecore_exe_data_get(ev->exe);
    if (!inst) return 1;
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to