summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);