forked from enlightenment/efl
efl/ecore(xcb: Port leak fix from xlib to xcb backend
SVN revision: 83136
This commit is contained in:
parent
4cc93b9f2c
commit
f57257b3ec
|
@ -247,7 +247,11 @@ ecore_x_e_window_profile_get(Ecore_X_Window win)
|
|||
CHECK_XCB_CONN;
|
||||
if (!ecore_x_window_prop_property_get(win, ECORE_X_ATOM_E_WINDOW_PROFILE,
|
||||
ECORE_X_ATOM_ATOM, 32, &data, &num))
|
||||
return NULL;
|
||||
{
|
||||
if (data)
|
||||
free(data);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (data)
|
||||
atom = (Ecore_X_Atom *)data;
|
||||
|
|
Loading…
Reference in New Issue