core: Don’t keep references to PersonaStores in each Individual
authorPhilip Withnall <philip@tecnocode.co.uk>
Fri, 22 Jun 2012 18:03:55 +0000 (19:03 +0100)
committerPhilip Withnall <philip@tecnocode.co.uk>
Thu, 19 Jul 2012 03:53:23 +0000 (04:53 +0100)
Pointless and it makes debugging reference counting bugs a real pain.

folks/individual.vala

index 06bcc32..881bfc1 100644 (file)
@@ -108,8 +108,8 @@ public class Folks.Individual : Object,
   /* Mapping from PersonaStore -> number of Personas from that store contained
    * in this Individual. There shouldn't be any entries with a number < 1.
    * This is used for working out when to disconnect from store signals. */
-  private HashMap<PersonaStore, uint> _stores =
-      new HashMap<PersonaStore, uint> (null, null);
+  private HashMap<unowned PersonaStore, uint> _stores =
+      new HashMap<unowned PersonaStore, uint> (null, null);
   /* The number of Personas in this Individual which have
    * Persona.is_user == true. Iff this is > 0, Individual.is_user == true. */
   private uint _persona_user_count = 0;