diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-09-12 16:23:55 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-09-12 16:23:55 +0300 |
commit | b810742d76f19a553b24744f0008fcca86b59547 (patch) | |
tree | ef3e142b68fe32b51670a38a2dec55b6a6a9f8c5 /src | |
parent | 5a3d2456df40cd53bd0f7e9135f025799a614f33 (diff) | |
download | metacity-b810742d76f19a553b24744f0008fcca86b59547.tar.gz |
compositor-xrender: fix memory leaks
Diffstat (limited to 'src')
-rw-r--r-- | src/compositor/meta-compositor-xrender.c | 12 |
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; |