[gnome-contacts] ContactsContact: reference to Store should be weak



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]