From aeac3b735bf4caf7c014c58c1271b2cbe5aedd80 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 12 Feb 2010 14:36:53 -0500 Subject: remove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functions when possible --- openbox/prompt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'openbox/prompt.c') diff --git a/openbox/prompt.c b/openbox/prompt.c index b10d8a18..e73545a5 100644 --- a/openbox/prompt.c +++ b/openbox/prompt.c @@ -269,9 +269,8 @@ static void prompt_layout(ObPrompt *self) b += OUTSIDE_MARGIN; { - Rect *area = screen_physical_area_all_monitors(); + Rect const *area = screen_physical_area_all_monitors(); maxw = MIN(MAX_WIDTH, area->width*4/5); - g_free(area); } /* find the button sizes and how much space we need for them */ -- cgit v1.2.3