[gthumb] flickr: fixed crash
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] flickr: fixed crash
- Date: Sun, 7 Jul 2013 10:32:22 +0000 (UTC)
commit f08d6e41d6ae8fc9c05fa0dcf76122723b8aedd8
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Jul 7 12:28:57 2013 +0200
flickr: fixed crash
ref and unref the account correctly
extensions/flicker_utils/flickr-service.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extensions/flicker_utils/flickr-service.c b/extensions/flicker_utils/flickr-service.c
index 7b5a5ff..4578293 100644
--- a/extensions/flicker_utils/flickr-service.c
+++ b/extensions/flicker_utils/flickr-service.c
@@ -652,7 +652,7 @@ get_user_info_ready_cb (SoupSession *session,
DomElement *node;
gboolean success = FALSE;
- account = web_service_get_current_account (WEB_SERVICE (self));
+ account = _g_object_ref (web_service_get_current_account (WEB_SERVICE (self)));
if (account == NULL)
account = g_object_new (FLICKR_TYPE_ACCOUNT,
"token", oauth_service_get_token (OAUTH_SERVICE (self)),
@@ -664,7 +664,7 @@ get_user_info_ready_cb (SoupSession *session,
if (g_strcmp0 (node->tag_name, "user") == 0) {
success = TRUE;
flickr_account_load_extra_data (FLICKR_ACCOUNT (account), node);
- g_simple_async_result_set_op_res_gpointer (result, account, (GDestroyNotify)
g_object_unref);
+ g_simple_async_result_set_op_res_gpointer (result, g_object_ref (account),
(GDestroyNotify) g_object_unref);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]