[folks: 1/4] Don't hold a reference to the Account when iterating through an Account list



commit 941b42b5e25605eb4b215703d41984eb5f7131fe
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Jul 22 14:18:23 2010 +0100

    Don't hold a reference to the Account when iterating through an Account list

 backends/telepathy/tpf-persona.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/telepathy/tpf-persona.vala b/backends/telepathy/tpf-persona.vala
index 7c1ebe0..427e700 100644
--- a/backends/telepathy/tpf-persona.vala
+++ b/backends/telepathy/tpf-persona.vala
@@ -250,7 +250,7 @@ public class Tpf.Persona : Folks.Persona,
       Account account_found = null;
       accounts.foreach ((l) =>
         {
-          var account = (Account) l;
+          unowned Account account = (Account) l;
           if (account.get_connection () == conn)
             {
               account_found = account;



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