[frogr] Replace wrong call to g_object_unref with fsp_data_free



commit 36e1da34cf2819956e293d30b745e82db3dd8350
Author: Mario Sanchez Prada <msanchez igalia com>
Date:   Mon Apr 9 01:37:58 2012 +0200

    Replace wrong call to g_object_unref with fsp_data_free

 src/flicksoup/fsp-parser.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/flicksoup/fsp-parser.c b/src/flicksoup/fsp-parser.c
index d85eaef..f391eb2 100644
--- a/src/flicksoup/fsp-parser.c
+++ b/src/flicksoup/fsp-parser.c
@@ -412,7 +412,7 @@ _check_token_parser                     (xmlDoc  *doc,
       if (!auth_token->token)
         {
           /* If we don't get enough information, return NULL */
-          g_object_unref (auth_token);
+          fsp_data_free (FSP_DATA (auth_token));
           auth_token = NULL;
 
           err = g_error_new (FSP_ERROR, FSP_ERROR_MISSING_DATA,
@@ -557,7 +557,7 @@ _get_upload_status_parser               (xmlDoc  *doc,
       if (!upload_status->id)
         {
           /* If we don't get enough information, return NULL */
-          g_object_unref (upload_status);
+          fsp_data_free (FSP_DATA (upload_status));
           upload_status = NULL;
 
           err = g_error_new (FSP_ERROR, FSP_ERROR_MISSING_DATA,



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