[gnome-builder] editor-workspace: use g_clear_pointer()
- From: Fabiano Fidêncio <ffidencio src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editor-workspace: use g_clear_pointer()
- Date: Sat, 27 Dec 2014 17:31:47 +0000 (UTC)
commit 5d53867dd0a7cab92c1829a85e1ab41c3a7211dd
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Dec 27 10:10:43 2014 -0600
editor-workspace: use g_clear_pointer()
https://bugzilla.gnome.org/show_bug.cgi?id=741870
src/editor/gb-editor-workspace.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/editor/gb-editor-workspace.c b/src/editor/gb-editor-workspace.c
index dfecd31..11b9048 100644
--- a/src/editor/gb-editor-workspace.c
+++ b/src/editor/gb-editor-workspace.c
@@ -247,8 +247,7 @@ gb_editor_workspace_finalize (GObject *object)
GbEditorWorkspacePrivate *priv = GB_EDITOR_WORKSPACE (object)->priv;
g_clear_pointer (&priv->command_map, g_hash_table_unref);
- g_free (priv->current_folder_uri);
- priv->current_folder_uri = NULL;
+ g_clear_pointer (&priv->current_folder_uri, g_free);
G_OBJECT_CLASS (gb_editor_workspace_parent_class)->finalize (object);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]