summaryrefslogtreecommitdiff
path: root/openbox/popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/popup.c')
-rw-r--r--openbox/popup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/popup.c b/openbox/popup.c
index 8176b6bf..02c87848 100644
--- a/openbox/popup.c
+++ b/openbox/popup.c
@@ -256,6 +256,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);
@@ -265,6 +267,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 */
@@ -300,8 +304,6 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text)
popup_show_timeout(self);
}
}
-
- g_free(area);
}
void popup_hide(ObPopup *self)