Enlightenment CVS committal
Author : metrics
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_int_config_icon_themes.c
Log Message:
--leaks
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_int_config_icon_themes.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- e_int_config_icon_themes.c 31 Oct 2006 14:56:28 -0000 1.14
+++ e_int_config_icon_themes.c 4 Nov 2006 12:00:13 -0000 1.15
@@ -333,6 +333,7 @@
E_Config_Dialog_Data *cfdata;
const char *v;
Ecore_Desktop_Icon_Theme *theme;
+ char * dir;
cfdata = data;
v = cfdata->themename;
@@ -347,7 +348,7 @@
length = strlen(theme->comment) + strlen(theme->path) + 16;
if (theme->inherits)
length += strlen(theme->inherits) + 32;
- text = malloc(length);
+ text = alloca(length);
if (text)
{
if (theme->inherits)
@@ -356,7 +357,9 @@
sprintf(text, "%s\npath = %s", theme->comment, theme->path);
e_widget_textblock_plain_set(cfdata->gui.comment, text);
}
- e_fm2_path_set(cfdata->gui.o_fm, ecore_file_get_dir(theme->path),
"/");
+ dir = ecore_file_get_dir(theme->path);
+ e_fm2_path_set(cfdata->gui.o_fm, dir, "/");
+ E_FREE(dir);
}
}
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs