From 61b1279f67c4cc37b131e36e6c8927ed88354747 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 24 Jun 2009 19:05:33 +0200 Subject: [PATCH] =?utf8?q?Bugfix:=20Don=E2=80=99t=20invalidate=20container?= =?utf8?q?=20pointer=20and=20access=20it=20when=20unmapping?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/handlers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 */ -- 2.39.5