Bugfix: Don’t invalidate container pointer and access it when unmapping

next
Michael Stapelberg 2009-06-24 19:05:33 +02:00
parent 7773a3e5dd
commit 61b1279f67
1 changed files with 3 additions and 2 deletions

View File

@ -619,8 +619,9 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_noti
table_remove(&by_parent, client->frame);
if (client->container != NULL) {
cleanup_table(conn, client->container->workspace);
fix_colrowspan(conn, client->container->workspace);
Workspace *workspace = client->container->workspace;
cleanup_table(conn, workspace);
fix_colrowspan(conn, workspace);
}
/* Lets see how many clients there are left on the workspace to delete it if its empty */