[gnome-builder/wip/libide] 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] libide: set ref_count to 1 in new func
- Date: Tue, 10 Feb 2015 22:42:29 +0000 (UTC)
commit 8bb67ae96682697014fe6c0fbd8a13113c038261
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]