mad propz to jonaskoelker finding a memleak
authorMikael Magnusson <mikachu@comhem.se>
Fri, 9 Jun 2006 22:35:55 +0000 (22:35 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Fri, 9 Jun 2006 22:35:55 +0000 (22:35 +0000)
openbox/place.c

index 76aa387..95763d0 100644 (file)
@@ -175,6 +175,8 @@ static gint area_cmp(gconstpointer p1, gconstpointer p2, gpointer data)
             if (num[i] > num[most])
                 most = i;
 
+        g_free(num);
+
         a = screen_physical_area_monitor(most);
         if (RECT_CONTAINS(*a, a1->x, a1->y))
             return -1;