[gnome-contacts] ContactsContact: reference to Store should be weak
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] ContactsContact: reference to Store should be weak
- Date: Fri, 29 Dec 2017 02:38:32 +0000 (UTC)
commit 210ab552af8ddf40bce1246258b58a34977890c6
Author: Niels De Graef <nielsdegraef gmail com>
Date: Fri Dec 29 03:01:17 2017 +0100
ContactsContact: reference to Store should be weak
Otherwise we get circular references, which can get us into trouble.
src/contacts-contact.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 17f290a..e921b47 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -29,7 +29,7 @@ public class Contacts.Contact : GLib.Object {
public const int LIST_AVATAR_SIZE = 48;
public const int SMALL_AVATAR_SIZE = 54;
- public Store store;
+ public weak Store store;
public bool is_main;
public Individual individual;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]