From 1d9991a0cd9b04dfa96a19bc73b40f01651de478 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Fri, 25 Jan 2008 12:53:43 +0100 Subject: Fix some memleaks. missing RrFontClose for osd_font in two places. missing a g_free(area); --- openbox/popup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'openbox/popup.c') diff --git a/openbox/popup.c b/openbox/popup.c index 283348e7..15d1bf52 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -257,6 +257,8 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text) x=MAX(MIN(x, area->x+area->width-w),area->x); y=MAX(MIN(y, area->y+area->height-h),area->y); + g_free(area); + if (m == screen_num_monitors) { RECT_SET(mon, x, y, w, h); m = screen_find_monitor(&mon); @@ -266,6 +268,8 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text) x=MAX(MIN(x, area->x+area->width-w),area->x); y=MAX(MIN(y, area->y+area->height-h),area->y); + + g_free(area); } /* set the windows/appearances up */ @@ -301,8 +305,6 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text) popup_show_timeout(self); } } - - g_free(area); } void popup_hide(ObPopup *self) -- cgit v1.2.3