Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : screenshot

Dir     : e_modules/screenshot


Modified Files:
        e_mod_main.c 


Log Message:
Use E_FREE to free things created via E_NEW.
Fix some EEK messages on stringshare del.
Fix removing event_handler that was already removed.

===================================================================
RCS file: /cvs/e/e_modules/screenshot/e_mod_main.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -3 -r1.71 -r1.72
--- e_mod_main.c        30 Mar 2007 20:40:29 -0000      1.71
+++ e_mod_main.c        1 Apr 2007 01:19:38 -0000       1.72
@@ -111,16 +111,13 @@
   inst = gcc->data;
   ss = inst->ss;
 
-  if (inst->filename)
-    evas_stringshare_del (inst->filename);
   ss_config->instances = evas_list_remove (ss_config->instances, inst);
 
   evas_object_event_callback_del (ss->ss_obj, EVAS_CALLBACK_MOUSE_DOWN,
                                  _ss_cb_mouse_down);
 
   _ss_free (ss);
-  free (inst);
-  inst = NULL;
+  E_FREE(inst);
 }
 
 static void
@@ -374,9 +371,6 @@
       ss_config->menu = NULL;
     }
 
-  if (ss_config->exe_exit_handler)
-    ecore_event_handler_del (ss_config->exe_exit_handler);
-
   while (ss_config->items)
     {
       Config_Item *ci;
@@ -453,8 +447,7 @@
 _ss_free (Screenshot * ss)
 {
   evas_object_del (ss->ss_obj);
-  free (ss);
-  ss = NULL;
+  E_FREE(ss);
 }
 
 static void



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to