[metacity] compositor-xrender: fix memory leaks
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] compositor-xrender: fix memory leaks
- Date: Sat, 12 Sep 2020 13:31:36 +0000 (UTC)
commit b810742d76f19a553b24744f0008fcca86b59547
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Sep 12 16:23:55 2020 +0300
compositor-xrender: fix memory leaks
src/compositor/meta-compositor-xrender.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]