[Telepathy-commits] [telepathy-gabble/master] remove the old status msg if we change the presence because of OLPC views

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Oct 23 04:17:19 PDT 2008


---
 src/presence.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/presence.c b/src/presence.c
index 05513b3..840a023 100644
--- a/src/presence.c
+++ b/src/presence.c
@@ -276,6 +276,8 @@ aggregate_resources (GabblePresence *presence)
       /* Contact is in at least one view and we didn't receive a better
        * presence from him so announce it as available */
       presence->status = GABBLE_PRESENCE_AVAILABLE;
+      g_free (presence->status_message);
+      presence->status_message = NULL;
     }
 }
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list