Enlightenment CVS committal

Author  : shorne
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_int_config_theme_import.c 


Log Message:
Fix some small memory leaks

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_theme_import.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_int_config_theme_import.c 29 Sep 2006 06:49:35 -0000      1.9
+++ e_int_config_theme_import.c 17 Dec 2006 11:57:22 -0000      1.10
@@ -150,7 +150,8 @@
    
    e_object_del(E_OBJECT(import->win));
    e_int_config_theme_import_done(import->parent);
-   
+  
+   E_FREE(import->cfdata->file); 
    E_FREE(import->cfdata);
    E_FREE(import);
    
@@ -212,13 +213,17 @@
 
    if (import->cfdata->file) 
      {
+       char *strip; 
+       
        file = ecore_file_get_file(import->cfdata->file);
-       if (!ecore_file_strip_ext(file)) 
+       strip = ecore_file_strip_ext(file);
+       if (!strip) 
          {
             E_FREE(import->cfdata->file);
             e_widget_disabled_set(import->ok_obj, 1);       
             return;
          }
+       free(strip);
        if (!e_util_glob_case_match(file, "*.edj")) 
          {
             E_FREE(import->cfdata->file);
@@ -254,11 +259,16 @@
    
    if (import->cfdata->file) 
      {
+       char *strip;
+       
        file = ecore_file_get_file(import->cfdata->file);
        snprintf(buf, sizeof(buf), "%s/.e/e/themes/%s", homedir, file);
 
-       if (!ecore_file_strip_ext(file)) 
+       strip = ecore_file_strip_ext(file);
+       if (!strip) 
          return;
+       free(strip);
+       
        if (!e_util_glob_case_match(file, "*.edj")) 
          return;
 



-------------------------------------------------------------------------
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