]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Fix memory leak
authorMichael Stapelberg <michael+git@stapelberg.de>
Fri, 20 Mar 2009 16:31:34 +0000 (17:31 +0100)
committerMichael Stapelberg <michael+git@stapelberg.de>
Fri, 20 Mar 2009 16:31:34 +0000 (17:31 +0100)
src/handlers.c

index 174b56c380bb6e55e37e96c2bf65c9f58729f2ac..6ce736ccb32c881b315245a3d35f5a3931c8f18b 100644 (file)
@@ -69,6 +69,7 @@ static bool event_is_ignored(const int sequence) {
                 if (event->sequence == sequence) {
                         LOG("Ignoring event (sequence %d)\n", sequence);
                         SLIST_REMOVE(&ignore_events, event, Ignore_Event, ignore_events);
+                        free(event);
                         return true;
                 }
         }