forked from enlightenment/efl
parent
8fcfc53754
commit
435d6499ac
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue