[libdazzle] settings: release allocated GVariant
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] settings: release allocated GVariant
- Date: Sat, 28 Jul 2018 08:14:24 +0000 (UTC)
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]