summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-02-25 16:23:42 +0100
committerZenWalker <[email protected]>2019-03-05 01:50:33 +0100
commitc74c6115f6b5c0e1404440e40f433d87fb207ac1 (patch)
treeff266540dbc6cdd3385f941dc8a47b47cdf1cde2 /src
parent911003044ca997acef5b31660c184ff5950fff9a (diff)
downloadmarco-c74c6115f6b5c0e1404440e40f433d87fb207ac1.tar.bz2
marco-c74c6115f6b5c0e1404440e40f433d87fb207ac1.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')
-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;
}