From db9e50e72853b962d4bf2a138373cf9a1c30bdf6 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 6 Aug 2008 16:13:42 +0200 Subject: [PATCH] event: fix memory leak on client size hints update Signed-off-by: Julien Danjou --- client.c | 2 +- event.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index 141526e8..8e2c026b 100644 --- a/client.c +++ b/client.c @@ -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. */ diff --git a/event.c b/event.c index c6610507..95da39dc 100644 --- a/event.c +++ b/event.c @@ -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)