Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/temperature
Modified Files:
e_mod_main.c
Log Message:
leak --
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e/src/modules/temperature/e_mod_main.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- e_mod_main.c 6 Oct 2005 23:55:44 -0000 1.42
+++ e_mod_main.c 8 Oct 2005 15:06:36 -0000 1.43
@@ -736,14 +736,17 @@
{
FILE *f;
- if (therms) ecore_list_destroy(therms);
+ if (therms)
+ {
+ ecore_list_destroy(therms);
+ therms = NULL;
+ }
f = fopen("/sys/devices/temperatures/cpu_temperature", "rb");
if (f) fclose(f);
if (!f)
{
-
therms = ecore_file_ls("/sys/bus/i2c/devices");
if (therms)
{
@@ -781,9 +784,11 @@
e->config_menu_sensor = mn;
}
ecore_list_destroy(therms);
+ therms = NULL;
}
}
}
+ if (therms) ecore_list_destroy(therms);
#endif
/* Main */
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs