]> Dogcows Code - chaz/openbox/commitdiff
Fix another memleak
authorMikael Magnusson <mikachu@comhem.se>
Tue, 7 Aug 2007 01:52:28 +0000 (03:52 +0200)
committerMikael Magnusson <mikachu@comhem.se>
Tue, 7 Aug 2007 01:58:02 +0000 (03:58 +0200)
openbox/menu.c
openbox/place.c

index b69b7a3b59f851a4360558bcfb23cecdf0012c04..330849cbe3cdf8b321f46f1e8229470eb7caed51 100644 (file)
@@ -523,6 +523,7 @@ void menu_entry_unref(ObMenuEntry *self)
             g_free(self->data.submenu.name);
             break;
         case OB_MENU_ENTRY_TYPE_SEPARATOR:
             g_free(self->data.submenu.name);
             break;
         case OB_MENU_ENTRY_TYPE_SEPARATOR:
+            g_free(self->data.separator.label);
             break;
         }
 
             break;
         }
 
index 7c20c79f81ef54b2bf47849eb52caaecc2011c34..9892836ec80a3ce9de4ce2c585eb27e06619ced4 100644 (file)
@@ -134,6 +134,8 @@ static Rect **pick_head(ObClient *c)
     for (i = 0; i < screen_num_monitors; ++i)
         area[i] = screen_area(c->desktop, choice[i], NULL);
 
     for (i = 0; i < screen_num_monitors; ++i)
         area[i] = screen_area(c->desktop, choice[i], NULL);
 
+    g_free(choice);
+
     return area;
 }
 
     return area;
 }
 
This page took 0.024059 seconds and 4 git commands to generate.