[libdazzle/libdazzle-3-28] settings: release allocated GVariant



commit f7d0e67e8a40c0eed0c5632b8ac92c6b2b55427e
Author: Christian Hergert <chergert redhat com>
Date:   Sat Jul 28 01:12:03 2018 -0700

    settings: release allocated GVariant
    
    This variant is not floating, and therefore we need to release it.

 src/settings/dzl-settings-sandwich.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/settings/dzl-settings-sandwich.c b/src/settings/dzl-settings-sandwich.c
index d8a9762..6fd03d3 100644
--- a/src/settings/dzl-settings-sandwich.c
+++ b/src/settings/dzl-settings-sandwich.c
@@ -67,7 +67,7 @@ dzl_settings_sandwich_cache_key (DzlSettingsSandwich *self,
                                  const gchar         *key)
 {
   GSettings *settings;
-  GVariant *value;
+  g_autoptr(GVariant) value = NULL;
   gsize i;
 
   g_assert (DZL_IS_SETTINGS_SANDWICH (self));


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