Fix another memleak
This commit is contained in:
parent
c2ab1eaab8
commit
d658612cac
2 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue