[gnome-builder/wip/libide: 71/237] libide: set ref_count to 1 in new func
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide: 71/237] libide: set ref_count to 1 in new func
- Date: Tue, 17 Feb 2015 21:35:23 +0000 (UTC)
commit 2b1435e66ef9a7463145fcc72331793dabbd743a
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]