[gnome-applets] window-buttons: fix few memory leaks
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] window-buttons: fix few memory leaks
- Date: Fri, 3 Apr 2020 20:14:47 +0000 (UTC)
commit 7d615fc57c3a50e6cb107a3d0640dc92a12dd197
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Apr 3 21:36:13 2020 +0300
window-buttons: fix few memory leaks
gnome-applets/window-buttons/external.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gnome-applets/window-buttons/external.c b/gnome-applets/window-buttons/external.c
index 554cc36f1..4a6274dd0 100755
--- a/gnome-applets/window-buttons/external.c
+++ b/gnome-applets/window-buttons/external.c
@@ -72,6 +72,7 @@ issetCompizDecoration ()
settings = g_settings_new(GSETTINGS_COMPIZ_SCHEMA);
current_profile = g_settings_get_string(settings, CFG_COMPIZ_CURRENT_PROFILE);
+ g_object_unref (settings);
path = g_strdup_printf(GSETTINGS_COMPIZ_DECOR_PATH, current_profile);
@@ -101,6 +102,7 @@ toggleCompizDecoration(gboolean new_value)
settings = g_settings_new(GSETTINGS_COMPIZ_SCHEMA);
current_profile = g_settings_get_string(settings, CFG_COMPIZ_CURRENT_PROFILE);
+ g_object_unref (settings);
path = g_strdup_printf(GSETTINGS_COMPIZ_DECOR_PATH, current_profile);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]