From 04f18ae7261c9c47037a95224aa1f851b87a016c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Sun, 6 Aug 2023 12:19:22 +0200 Subject: [PATCH] backend/x11: Free barriers in meta_backend_x11_dispose Should fix a memory leak. Fixes: 0debb24e12d7 ("barriers: Make barriers fully part of the backend"). Part-of: --- src/backends/x11/meta-backend-x11.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backends/x11/meta-backend-x11.c b/src/backends/x11/meta-backend-x11.c index ca239a09e..5a51e81c3 100644 --- a/src/backends/x11/meta-backend-x11.c +++ b/src/backends/x11/meta-backend-x11.c @@ -955,6 +955,7 @@ meta_backend_x11_dispose (GObject *object) G_OBJECT_CLASS (meta_backend_x11_parent_class)->dispose (object); + g_clear_pointer (&priv->barriers, meta_x11_barriers_free); g_clear_pointer (&priv->xdisplay, XCloseDisplay); }