summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-10-05 04:44:44 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-10-05 04:44:44 -0500
commitefccb3d8216948df41f4d1043135986012457382 (patch)
treed2665fce0e5c76821d1c42926599901b23b37ca2
parent0adc874ea7ff0716ca230d131381976bcf4b9e07 (diff)
downloadgroup-compiz-0.8.tar.gz
group-compiz-0.8.tar.bz2
Fix crash.compiz-0.8
-rw-r--r--cairo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cairo.c b/cairo.c
index 299c07c..79f76fa 100644
--- a/cairo.c
+++ b/cairo.c
@@ -71,6 +71,9 @@ void
groupDestroyCairoLayer (CompScreen *s,
GroupCairoLayer *layer)
{
+ if (!layer)
+ return;
+
if (layer->cairo)
cairo_destroy (layer->cairo);