]> Dogcows Code - chaz/openbox/blobdiff - openbox/prompt.c
remove a bunch of g_new()/g_free() by returning Rect const*'s from screen area functi...
[chaz/openbox] / openbox / prompt.c
index b10d8a18e91844349a7a2d9e78060ea0cea957cb..e73545a51b7227850d436de9455b632ac81325c5 100644 (file)
@@ -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 */
This page took 0.020004 seconds and 4 git commands to generate.