summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-09-12 16:23:55 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-09-12 16:23:55 +0300
commitb810742d76f19a553b24744f0008fcca86b59547 (patch)
treeef3e142b68fe32b51670a38a2dec55b6a6a9f8c5 /src
parent5a3d2456df40cd53bd0f7e9135f025799a614f33 (diff)
downloadmetacity-b810742d76f19a553b24744f0008fcca86b59547.tar.gz
compositor-xrender: fix memory leaks
Diffstat (limited to 'src')
-rw-r--r--src/compositor/meta-compositor-xrender.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/compositor/meta-compositor-xrender.c b/src/compositor/meta-compositor-xrender.c
index 6acd3297..650b483b 100644
--- a/src/compositor/meta-compositor-xrender.c
+++ b/src/compositor/meta-compositor-xrender.c
@@ -920,6 +920,18 @@ meta_compositor_xrender_finalize (GObject *object)
if (xrender->root_picture)
XRenderFreePicture (xdisplay, xrender->root_picture);
+ if (xrender->root_buffer)
+ {
+ XRenderFreePicture (xdisplay, xrender->root_buffer);
+ xrender->root_buffer = None;
+ }
+
+ if (xrender->root_tile)
+ {
+ XRenderFreePicture (xdisplay, xrender->root_tile);
+ xrender->root_tile = None;
+ }
+
if (xrender->have_shadows)
{
int i;