summaryrefslogtreecommitdiff
path: root/src/compositor
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-02-25 16:23:42 +0100
committerPablo Barciela <[email protected]>2019-03-05 01:53:16 +0100
commitfc162dfcb10cd3d3c74e160e0fad14cdd1257c61 (patch)
treeff266540dbc6cdd3385f941dc8a47b47cdf1cde2 /src/compositor
parent911003044ca997acef5b31660c184ff5950fff9a (diff)
downloadmarco-fc162dfcb10cd3d3c74e160e0fad14cdd1257c61.tar.bz2
marco-fc162dfcb10cd3d3c74e160e0fad14cdd1257c61.tar.xz
compositor-xrender: Fix memory leak
Fixes Clang static analyzer warning: compositor/compositor-xrender.c:587:10: warning: Potential leak of memory pointed to by 'data' return ximage; ^~~~~~
Diffstat (limited to 'src/compositor')
-rw-r--r--src/compositor/compositor-xrender.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index c18c8dd2..de112db9 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -584,6 +584,8 @@ make_shadow (MetaDisplay *display,
}
}
+ ximage->data = (char *) data;
+
return ximage;
}