plugged a memleak

SVN revision: 8335
This commit is contained in:
tsauerbeck 2004-01-11 00:51:15 +00:00 committed by tsauerbeck
parent 8fcfc53754
commit 435d6499ac
1 changed files with 6 additions and 1 deletions

View File

@ -49,7 +49,10 @@ ecore_x_window_prop_property_get(Ecore_X_Window win, Ecore_X_Atom property, Ecor
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;
@ -80,6 +83,8 @@ ecore_x_window_prop_property_get(Ecore_X_Window win, Ecore_X_Atom property, Ecor
break;
}
XFree(prop_ret);
*num = num_ret;
return 1;
}