[libdazzle] settings: release allocated GVariant



commit a253f4d44778fbddf6cb559748c8499c5d84b894
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 610e863..be40d09 100644
--- a/src/settings/dzl-settings-sandwich.c
+++ b/src/settings/dzl-settings-sandwich.c
@@ -68,7 +68,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]