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/dock.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'openbox/dock.c') diff --git a/openbox/dock.c b/openbox/dock.c index d1f6b294..03db8e9e 100644 --- a/openbox/dock.c +++ b/openbox/dock.c @@ -234,7 +234,7 @@ void dock_configure(void) gint gravity; gint l, r, t, b; gint strw, strh; - Rect *a; + Rect const *a; gint hidesize; RrMargins(dock->a_frame, &l, &t, &r, &b); @@ -548,8 +548,6 @@ void dock_configure(void) } screen_update_areas(); - - g_free(a); } void dock_app_configure(ObDockApp *app, gint w, gint h) -- cgit v1.2.3