[gnome-builder/gnome-builder-3-28] vcs-monitor: fix leak of file information



commit e636e62e271e48d8b48573193cb34cc5cbb7b149
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 13 14:54:49 2018 -0700

    vcs-monitor: fix leak of file information

 src/libide/vcs/ide-vcs-monitor.c               | 2 +-
 src/plugins/project-tree/gb-vcs-tree-builder.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/vcs/ide-vcs-monitor.c b/src/libide/vcs/ide-vcs-monitor.c
index 3e5ee4fdb..d91263720 100644
--- a/src/libide/vcs/ide-vcs-monitor.c
+++ b/src/libide/vcs/ide-vcs-monitor.c
@@ -410,7 +410,7 @@ ide_vcs_monitor_init (IdeVcsMonitor *self)
  * can wait for #IdeVcsMonitor::reloaded and query again if you expect
  * the info to be there.
  * 
- * Returns: (transfer none) (nullable): an #IdeVcsFileInfo or %NULL
+ * Returns: (transfer full) (nullable): an #IdeVcsFileInfo or %NULL
  *
  * Since: 3.28
  */
diff --git a/src/plugins/project-tree/gb-vcs-tree-builder.c b/src/plugins/project-tree/gb-vcs-tree-builder.c
index 75d50f1f4..6abfeef20 100644
--- a/src/plugins/project-tree/gb-vcs-tree-builder.c
+++ b/src/plugins/project-tree/gb-vcs-tree-builder.c
@@ -50,7 +50,7 @@ gb_vcs_tree_builder_cell_data_func (DzlTreeBuilder  *builder,
                                     GtkCellRenderer *cell)
 {
   GbVcsTreeBuilder *self = (GbVcsTreeBuilder *)builder;
-  IdeVcsFileInfo *info;
+  g_autoptr(IdeVcsFileInfo) info = NULL;
   GObject *item;
   GFile *file;
   IdeVcsFileStatus status;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]