efl/ecore(xcb: Port leak fix from xlib to xcb backend

SVN revision: 83136
This commit is contained in:
Stefan Schmidt 2013-01-23 09:51:53 +00:00
parent 4cc93b9f2c
commit f57257b3ec
1 changed files with 5 additions and 1 deletions

View File

@ -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;