event: fix memory leak on client size hints update

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-06 16:13:42 +02:00
parent 9cf1bc00c9
commit db9e50e728
2 changed files with 2 additions and 2 deletions

View File

@ -744,7 +744,7 @@ client_updatewmhints(client_t *c)
}
}
/** Update the size hintz of a client.
/** Update the size hints of a client.
* \param c The client.
* \return A pointer to a xcb_size_hints_t.
*/

View File

@ -531,7 +531,7 @@ event_handle_propertynotify(void *data __attribute__ ((unused)),
globalconf.screens[c->screen].need_arrange = true;
}
else if (ev->atom == WM_NORMAL_HINTS)
client_updatesizehints(c);
xcb_free_size_hints(client_updatesizehints(c));
else if (ev->atom == WM_HINTS)
client_updatewmhints(c);
else if(ev->atom == WM_NAME || ev->atom == _NET_WM_NAME)