Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_theme.c
Log Message:
Duplicate strings returned from the widget and cached hash tables.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_theme.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ewl_theme.c 28 Mar 2005 07:04:29 -0000 1.7
+++ ewl_theme.c 11 Apr 2005 04:41:59 -0000 1.8
@@ -398,8 +398,9 @@
if (!ret) {
ret = edje_file_data_get(theme_path, temp);
-
}
+ else
+ ret = strdup(ret);
temp++;
temp = strchr(temp, '/');
if (!temp && w && w->parent) {
@@ -416,6 +417,7 @@
cached_theme_data =
ecore_hash_new(ecore_str_hash,
ecore_str_compare);
ecore_hash_set(cached_theme_data, temp, strdup(ret));
+ ret = strdup(ret);
}
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs