summaryrefslogtreecommitdiff
path: root/cairo.c
diff options
context:
space:
mode:
Diffstat (limited to 'cairo.c')
-rw-r--r--cairo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cairo.c b/cairo.c
index da59146..342ab11 100644
--- a/cairo.c
+++ b/cairo.c
@@ -98,6 +98,8 @@ groupCreateCairoLayer (CompScreen *s,
layer = malloc (sizeof (GroupCairoLayer));
+ if (!layer)
+ return NULL;
layer->surface = NULL;
layer->cairo = NULL;