Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_config


Modified Files:
        ecore_config.c 


Log Message:
Free the strdup'd string when destroying a theme property.

===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_config/ecore_config.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -3 -r1.67 -r1.68
--- ecore_config.c      27 Dec 2005 19:21:58 -0000      1.67
+++ ecore_config.c      28 Dec 2005 21:42:08 -0000      1.68
@@ -80,7 +80,7 @@
 
    if (e->key)
       free(e->key);
-   if (e->ptr && (e->type == ECORE_CONFIG_STR))
+   if (e->ptr && ((e->type == ECORE_CONFIG_STR) || (e->type == 
ECORE_CONFIG_THM)))
       free(e->ptr);
 
    memset(e, 0, sizeof(Ecore_Config_Prop));




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to