Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x
Modified Files:
ecore_x_window_prop.c
Log Message:
plugged a memleak
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- ecore_x_window_prop.c 10 Jan 2004 19:56:44 -0000 1.21
+++ ecore_x_window_prop.c 11 Jan 2004 00:51:15 -0000 1.22
@@ -49,7 +49,10 @@
if (!win) win = DefaultRootWindow(_ecore_x_disp);
- ret = XGetWindowProperty(_ecore_x_disp, win, property, 0, LONG_MAX, False, type,
&type_ret, &size_ret, &num_ret, &bytes, &prop_ret);
+ ret = XGetWindowProperty(_ecore_x_disp, win, property, 0, LONG_MAX,
+ False, type, &type_ret, &size_ret,
+ &num_ret, &bytes, &prop_ret);
+
if (ret != Success)
{
*data = NULL;
@@ -79,6 +82,8 @@
((uint32_t *) *data)[i] = ((uint32_t *) prop_ret)[i];
break;
}
+
+ XFree(prop_ret);
*num = num_ret;
return 1;
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs