[gnome-builder] vcs-monitor: use g_file_dup() to simplify leak tracking



commit 78868e3953eab34b6aabcca1fba4167014392cdf
Author: Christian Hergert <chergert redhat com>
Date:   Mon Aug 13 14:54:20 2018 -0700

    vcs-monitor: use g_file_dup() to simplify leak tracking

 src/libide/vcs/ide-vcs-monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/vcs/ide-vcs-monitor.c b/src/libide/vcs/ide-vcs-monitor.c
index 5f7734ac0..cacad1dce 100644
--- a/src/libide/vcs/ide-vcs-monitor.c
+++ b/src/libide/vcs/ide-vcs-monitor.c
@@ -139,7 +139,7 @@ ide_vcs_monitor_list_status_cb (GObject      *object,
       status = ide_vcs_file_info_get_status (info);
 
       g_hash_table_insert (status_by_file,
-                           g_object_ref (file),
+                           g_file_dup (file),
                            g_steal_pointer (&info));
 
       ide_vcs_monitor_add_parents (status_by_file, file, workdir, status);


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