man thats bad. leak AND we dont get the client leaer property right! fix.

SVN revision: 15380
This commit is contained in:
Carsten Haitzler 2005-06-17 09:05:22 +00:00
parent fb47ce6b94
commit e9e3bed845
1 changed files with 11 additions and 3 deletions

View File

@ -1042,9 +1042,17 @@ ecore_x_icccm_client_leader_get(Ecore_X_Window win)
if (ecore_x_window_prop_property_get(win,
ECORE_X_ATOM_WM_CLIENT_LEADER,
XA_WINDOW, 32, &data, &num))
return (Ecore_X_Window) * data;
else
return 0;
{
if (data)
{
Ecore_X_Window wlead;
wlead = *((Ecore_X_Window *)data);
free(data);
return wlead;
}
}
return 0;
}
void