[gnome-builder/wip/ggit] ggit: use proper free functions
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/ggit] ggit: use proper free functions
- Date: Sun, 28 Sep 2014 06:43:59 +0000 (UTC)
commit 540ef3f3e59a08482068dbe05726162e9c10990f
Author: Christian Hergert <christian hergert me>
Date: Sat Sep 27 23:43:51 2014 -0700
ggit: use proper free functions
src/editor/gb-source-change-monitor.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/editor/gb-source-change-monitor.c b/src/editor/gb-source-change-monitor.c
index eb91866..5fe80ee 100644
--- a/src/editor/gb-source-change-monitor.c
+++ b/src/editor/gb-source-change-monitor.c
@@ -151,15 +151,16 @@ cleanup:
g_warning ("%s", error->message);
g_clear_error (&error);
}
+
g_clear_object (&blob);
+ g_clear_pointer (&entry_oid, ggit_oid_free);
+ g_clear_pointer (&entry, ggit_tree_entry_unref);
+ g_clear_pointer (&relpath, g_free);
+ g_clear_object (&workdir);
+ g_clear_object (&tree);
g_clear_object (&commit);
- g_clear_object (&entry);
- g_clear_object (&entry_oid);
+ g_clear_pointer (&oid, ggit_oid_free);
g_clear_object (&head);
- g_clear_object (&oid);
- g_clear_object (&tree);
- g_clear_object (&workdir);
- g_clear_pointer (&relpath, g_free);
RETURN (G_SOURCE_REMOVE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]