summaryrefslogtreecommitdiff
path: root/showdesktop.c
diff options
context:
space:
mode:
Diffstat (limited to 'showdesktop.c')
-rw-r--r--showdesktop.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/showdesktop.c b/showdesktop.c
index 596a5b2..e59b38f 100644
--- a/showdesktop.c
+++ b/showdesktop.c
@@ -648,7 +648,8 @@ showdesktopGetAllowedActionsForWindow (CompWindow *w,
WRAP (ss, s, getAllowedActionsForWindow,
showdesktopGetAllowedActionsForWindow);
- *clearActions |= sw->notAllowedMask;
+ if (sw)
+ *clearActions |= sw->notAllowedMask;
}
static void
@@ -884,6 +885,9 @@ showdesktopFiniWindow (CompPlugin *p,
SD_WINDOW (w);
free (sw);
+
+ SD_SCREEN (w->screen);
+ w->base.privates[ss->windowPrivateIndex].ptr = NULL;
}
static CompBool