[gnome-builder/wip/libide] autotools: config property is a GKeyFile, so use g_clear_pointer().
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] autotools: config property is a GKeyFile, so use g_clear_pointer().
- Date: Sat, 7 Feb 2015 23:53:54 +0000 (UTC)
commit 2c01c670b96f9910f738cd0044f21d50ef3c1d36
Author: Christian Hergert <christian hergert me>
Date: Sat Feb 7 15:53:42 2015 -0800
autotools: config property is a GKeyFile, so use g_clear_pointer().
Fixes some fallout from moving from IdeBuildConfig to GKeyFile.
libide/autotools/ide-autotools-builder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/autotools/ide-autotools-builder.c b/libide/autotools/ide-autotools-builder.c
index 4b37918..314ae84 100644
--- a/libide/autotools/ide-autotools-builder.c
+++ b/libide/autotools/ide-autotools-builder.c
@@ -204,7 +204,7 @@ ide_autotools_builder_finalize (GObject *object)
IdeAutotoolsBuilder *self = (IdeAutotoolsBuilder *)object;
IdeAutotoolsBuilderPrivate *priv = ide_autotools_builder_get_instance_private (self);
- g_clear_object (&priv->config);
+ g_clear_pointer (&priv->config, g_key_file_unref);
g_clear_object (&priv->device);
G_OBJECT_CLASS (ide_autotools_builder_parent_class)->finalize (object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]