]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Don’t invalidate container pointer and access it when unmapping
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 24 Jun 2009 17:05:33 +0000 (19:05 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 24 Jun 2009 17:05:33 +0000 (19:05 +0200)
src/handlers.c

index 3dbef90d2745fb6eee1ca30c6fd5c835af76efe2..ae1a5d7fd642964292345b64f63387fc098200bb 100644 (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);
         }
 
         /* Let’s see how many clients there are left on the workspace to delete it if it’s empty */