[gnome-builder] libide: use weak pointer for context property
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: use weak pointer for context property
- Date: Mon, 23 Mar 2015 23:38:56 +0000 (UTC)
commit bb26635d1d394c1937eff7ac6ca235baed42f978
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]