[gnome-builder/wip/libide: 57/153] libide: set ref_count to 1 in new func



commit c00c483b19f9f30e5d87280a2a952172f9132c01
Author: Christian Hergert <christian hergert me>
Date:   Tue Feb 10 14:09:25 2015 -0800

    libide: set ref_count to 1 in new func

 libide/ide-source-location.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libide/ide-source-location.c b/libide/ide-source-location.c
index b56a967..647dc1b 100644
--- a/libide/ide-source-location.c
+++ b/libide/ide-source-location.c
@@ -146,6 +146,7 @@ ide_source_location_new (IdeFile *file,
   g_return_val_if_fail (IDE_IS_FILE (file), NULL);
 
   ret = g_slice_new0 (IdeSourceLocation);
+  ret->ref_count = 1;
   ret->file = g_object_ref (file);
   ret->line = line;
   ret->line_offset = line_offset;


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