From d658612cac44ccc1406aea1bad48c851016e4751 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 7 Aug 2007 03:52:28 +0200 Subject: [PATCH] Fix another memleak --- openbox/menu.c | 1 + openbox/place.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/openbox/menu.c b/openbox/menu.c index b69b7a3b..330849cb 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -523,6 +523,7 @@ void menu_entry_unref(ObMenuEntry *self) g_free(self->data.submenu.name); break; case OB_MENU_ENTRY_TYPE_SEPARATOR: + g_free(self->data.separator.label); break; } diff --git a/openbox/place.c b/openbox/place.c index 7c20c79f..9892836e 100644 --- a/openbox/place.c +++ b/openbox/place.c @@ -134,6 +134,8 @@ static Rect **pick_head(ObClient *c) for (i = 0; i < screen_num_monitors; ++i) area[i] = screen_area(c->desktop, choice[i], NULL); + g_free(choice); + return area; } -- 2.45.2