[gtk/wip/baedert/for-master: 4/6] wayland: Fix a GSettingsSchema leak




commit b0d89b188224be7f8f50f280d206fa3b2e90a849
Author: Timm Bäder <mail baedert org>
Date:   Sat Aug 29 11:38:07 2020 +0200

    wayland: Fix a GSettingsSchema leak

 gdk/wayland/gdkdisplay-wayland.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c
index 9be0bacfad..d5a97a4010 100644
--- a/gdk/wayland/gdkdisplay-wayland.c
+++ b/gdk/wayland/gdkdisplay-wayland.c
@@ -1557,6 +1557,9 @@ update_xft_settings (GdkDisplay *display)
           order = GSD_FONT_RGBA_ORDER_RGB;
         }
 
+      if (schema)
+        g_settings_schema_unref (schema);
+
       dpi = get_dpi_from_gsettings (display_wayland) * 1024;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]