X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fpopup.c;h=02c87848675c3b30fe5f455d716c1a48510b0797;hb=20b8fcfa33feeade5946bc7f3046705da5d164fe;hp=8176b6bf4e166512081b8d2b345e73bafd4510a4;hpb=dc94a241c30484611688a8bfb5515577f017529e;p=chaz%2Fopenbox 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)