Commit 7dad1c4e authored by o9000's avatar o9000

Freespace: release memory in correct order

parent f8ceb5a8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment