[folks] Handle ownership of TpContact.connection automatically.



commit 1baf849cc8296f7d154742ded5069034680850c5
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Thu Jun 9 08:43:54 2011 -0700

    Handle ownership of TpContact.connection automatically.
    
    It recently changed in telepathy-glib and/or Vala 0.14.x finally detected that
    the TpContact.connection property returns an owned TpConnection (making our use
    of "unowned Connection connection = contact.connection" invalid).

 backends/telepathy/lib/tpf-persona.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/telepathy/lib/tpf-persona.vala b/backends/telepathy/lib/tpf-persona.vala
index 309cd1f..255463d 100644
--- a/backends/telepathy/lib/tpf-persona.vala
+++ b/backends/telepathy/lib/tpf-persona.vala
@@ -224,7 +224,7 @@ public class Tpf.Persona : Folks.Persona,
   public Persona (Contact contact, PersonaStore store)
     {
       unowned string id = contact.get_identifier ();
-      unowned Connection connection = contact.connection;
+      var connection = contact.connection;
       var account = this._account_for_connection (connection);
       var uid = this.build_uid (store.type_id, store.id, id);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]