Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : proto
Dir : e17/proto/esmart/src/trans
Modified Files:
esmart_trans.c
Log Message:
fixed a memleak
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/trans/esmart_trans.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- esmart_trans.c 18 Apr 2004 18:43:19 -0000 1.13
+++ esmart_trans.c 22 Apr 2004 15:06:17 -0000 1.14
@@ -178,10 +178,10 @@
fprintf(stderr, "Esmart_Trans Error: Got invalid pixmap from root window!
Ignored.\n");
} /* if ((p = *((Ecore_X_Pixmap *) data))) */
else
- {
- free(data);
fprintf(stderr, "Esmart_Trans Error: Could not read root window pixmap
property!\n");
- }
+
+ if (data)
+ free(data);
} /* ecore_x_window_prop_property_get() */
else
fprintf(stderr, "Esmart_Trans Error: Could not obtain root pixmap atom.\n");
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs