[gtk/fix-memleaks: 7/11] settings: Plug a memory leak
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-memleaks: 7/11] settings: Plug a memory leak
- Date: Sat, 27 Mar 2021 23:12:20 +0000 (UTC)
commit 8994635d39850ecc6ce7a187252a1a036e8a51b5
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 27 17:06:14 2021 -0400
settings: Plug a memory leak
It is rare that settings are finalized, but we
still shouldn't leak in that case.
gtk/gtksettings.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index f17090ef3d..6d096698b0 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -1177,6 +1177,8 @@ gtk_settings_finalize (GObject *object)
g_free (settings->font_family);
+ g_object_unref (settings->theme_provider);
+
G_OBJECT_CLASS (gtk_settings_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]