[gnome-builder/wip/libide] libide: use weak pointer for context property
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide] libide: use weak pointer for context property
- Date: Tue, 24 Feb 2015 01:38:18 +0000 (UTC)
commit 6543fa1b335812880499d44f6df49504da936da8
Author: Christian Hergert <christian hergert me>
Date: Mon Feb 23 17:38:09 2015 -0800
libide: use weak pointer for context property
libide/ide-buffer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-buffer.c b/libide/ide-buffer.c
index cc49af5..fe1ef34 100644
--- a/libide/ide-buffer.c
+++ b/libide/ide-buffer.c
@@ -71,7 +71,7 @@ ide_buffer_set_context (IdeBuffer *self,
g_return_if_fail (IDE_IS_CONTEXT (context));
g_return_if_fail (self->context == NULL);
- self->context = g_object_ref (context);
+ ide_set_weak_pointer (&self->context, context);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]