Fix another memleak

This commit is contained in:
Mikael Magnusson 2007-08-07 03:52:28 +02:00
parent c2ab1eaab8
commit d658612cac
2 changed files with 3 additions and 0 deletions

View 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.separator.label);
break;
}

View 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);
g_free(choice);
return area;
}