diff options
author | Pablo Barciela <[email protected]> | 2019-02-25 16:23:42 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2019-03-05 01:53:16 +0100 |
commit | fc162dfcb10cd3d3c74e160e0fad14cdd1257c61 (patch) | |
tree | ff266540dbc6cdd3385f941dc8a47b47cdf1cde2 /src/compositor | |
parent | 911003044ca997acef5b31660c184ff5950fff9a (diff) | |
download | marco-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.c | 2 |
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; } |