Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_image.c
Log Message:
- remove old code, fix memory leak
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_image.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- ewl_image.c 20 Oct 2006 18:21:53 -0000 1.51
+++ ewl_image.c 29 Dec 2006 17:58:22 -0000 1.52
@@ -185,7 +185,6 @@
void
ewl_image_file_set(Ewl_Image *i, const char *im, const char *key)
{
- int old_type;
Ewl_Widget *w;
DENTER_FUNCTION(DLEVEL_STABLE);
@@ -194,23 +193,16 @@
w = EWL_WIDGET(i);
- if (i->path != im) {
- IF_FREE(i->path);
- }
-
- if (i->key != key) {
- IF_FREE(i->key);
- }
+ IF_FREE(i->path);
+ IF_FREE(i->key);
/*
* Determine the type of image to be loaded.
*/
- old_type = i->type;
if (im) {
i->type = ewl_image_type_get(im);
i->path = strdup(im);
- if (key)
- i->key = strdup(key);
+ if (key) i->key = strdup(key);
}
else
i->type = EWL_IMAGE_TYPE_NORMAL;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs