From 44973650d83ba049b752a1d1b1f901f8d7cb21ae Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 11 Jun 2010 11:54:48 -0400 Subject: [PATCH] don't leak serial ignores on shutdown --- openbox/event.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openbox/event.c b/openbox/event.c index a508abfa..8fc9a3fc 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -161,8 +161,15 @@ void event_startup(gboolean reconfig) void event_shutdown(gboolean reconfig) { + GSList *it; + if (reconfig) return; + for (it = ignore_serials; it; it = g_slist_next(it)) + g_slice_free(ObSerialRange, it->data); + g_slist_free(ignore_serials); + ignore_serials = NULL; + #ifdef USE_SM IceRemoveConnectionWatch(ice_watch, NULL); #endif -- 2.34.1