From: Michael Stapelberg Date: Wed, 24 Jun 2009 17:05:33 +0000 (+0200) Subject: Bugfix: Don’t invalidate container pointer and access it when unmapping X-Git-Tag: 3.b~19 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61b1279f67c4cc37b131e36e6c8927ed88354747;p=i3%2Fi3 Bugfix: Don’t invalidate container pointer and access it when unmapping --- diff --git a/src/handlers.c b/src/handlers.c index 3dbef90d..ae1a5d7f 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -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 */