From: Mikael Magnusson Date: Tue, 7 Aug 2007 01:52:28 +0000 (+0200) Subject: Fix another memleak X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fopenbox;a=commitdiff_plain;h=d658612cac44ccc1406aea1bad48c851016e4751 Fix another memleak --- 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; }