[libsocialweb] flickr: Increase ref count of service when online



commit aab12bf564f0f6ca79a385558638543390cec2d2
Author: Gary Ching-Pang Lin <chingpang gmail com>
Date:   Wed Dec 15 16:36:24 2010 +0800

    flickr: Increase ref count of service when online

 services/flickr/flickr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/services/flickr/flickr.c b/services/flickr/flickr.c
index b3d2251..dc8a795 100644
--- a/services/flickr/flickr.c
+++ b/services/flickr/flickr.c
@@ -231,7 +231,7 @@ online_notify (gboolean online, gpointer user_data)
   SW_DEBUG (FLICKR, "Online: %s", online ? "yes" : "no");
 
   if (online) {
-    got_tokens_cb (priv->proxy, TRUE, service);
+    got_tokens_cb (priv->proxy, TRUE, g_object_ref (service));
   } else {
     priv->authorised = FALSE;
 



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