Enlightenment CVS committal
Author : kwo
Project : e16
Module : e
Dir : e16/e/src
Modified Files:
desktops.c ecore-e16.c menus-misc.c theme.c x.c
Log Message:
Fix memory leaks.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/desktops.c,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -3 -r1.144 -r1.145
--- desktops.c 7 May 2005 11:19:56 -0000 1.144
+++ desktops.c 12 May 2005 16:50:51 -0000 1.145
@@ -951,6 +951,8 @@
ButtonMoveToDesktop(btn, desks.current);
}
+ if (lst)
+ Efree(lst);
}
void
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/ecore-e16.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ecore-e16.c 19 Mar 2005 16:40:01 -0000 1.11
+++ ecore-e16.c 12 May 2005 16:50:52 -0000 1.12
@@ -433,7 +433,7 @@
&bytes_after, &prop_ret) != Success)
return -1;
- if (type_ret == None)
+ if (type_ret == None || num_ret == 0)
{
num = 0;
}
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/menus-misc.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- menus-misc.c 20 Mar 2005 17:31:13 -0000 1.9
+++ menus-misc.c 12 May 2005 16:50:52 -0000 1.10
@@ -281,7 +281,6 @@
icc = ImageclassFind(wd, 0);
if (!icc)
icc = ImageclassCreateSimple(wd, icon);
- Efree(icon);
}
if ((act) && (!strcmp(act, "exec")) && (params))
{
@@ -313,6 +312,8 @@
}
if (txt)
Efree(txt);
+ if (icon)
+ Efree(icon);
if (act)
Efree(act);
if (params)
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/theme.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -3 -r1.47 -r1.48
--- theme.c 15 Apr 2005 21:07:46 -0000 1.47
+++ theme.c 12 May 2005 16:50:52 -0000 1.48
@@ -412,7 +412,7 @@
Efree(Conf.theme.name);
Conf.theme.name = fullfileof(theme);
- Mode.theme.path = Estrdup(theme);
+ Mode.theme.path = theme;
}
static void
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/x.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -3 -r1.86 -r1.87
--- x.c 7 May 2005 11:20:01 -0000 1.86
+++ x.c 12 May 2005 16:50:52 -0000 1.87
@@ -1077,6 +1077,9 @@
if (!XQueryTree(disp, win, &rt, &parent, &pch, &nch))
return None;
+ if (pch)
+ XFree(pch);
+
return parent;
}
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs