diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-02-12 14:36:53 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-02-12 14:37:33 -0500 |
| commit | aeac3b735bf4caf7c014c58c1271b2cbe5aedd80 (patch) | |
| tree | f727f835b505a3676c081698c5a77458b0e9ec1c /openbox/prompt.c | |
| parent | e61fd8874a8352fb5fa1c4b2ab84d29679fa7b0c (diff) | |
remove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functions when possible
Diffstat (limited to 'openbox/prompt.c')
| -rw-r--r-- | openbox/prompt.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 */ |
