Freespace: release memory in correct order

This commit is contained in:
o9000 2016-10-08 10:17:16 +02:00
parent f8ceb5a849
commit 7dad1c4e33

View file

@ -131,8 +131,6 @@ void cleanup_panel()
for (int i = 0; i < num_panels; i++) {
Panel *p = &panels[i];
cleanup_freespace(p);
free_area(&p->area);
if (p->temp_pmap)
XFreePixmap(server.display, p->temp_pmap);
@ -144,6 +142,7 @@ void cleanup_panel()
XDestroyWindow(server.display, p->main_win);
p->main_win = 0;
stop_timeout(p->autohide_timeout);
cleanup_freespace(p);
}
free(panel_items_order);