summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-08-27 12:26:37 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-08-27 12:26:37 -0500
commitc785390abb2bc5c13ac3d1ae4cc106b8732b22ce (patch)
tree40281a6136cf2640df1c39d9dd4fe865592421cd
parent869e3929fd2f0cfdfeb7e9df0c1bb1eb9702618c (diff)
downloadshowdesktop-compiz-0.8.tar.gz
showdesktop-compiz-0.8.tar.bz2
Fix invalid read.compiz-0.8
-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