aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-ft-handler.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimo.cecchi@collabora.co.uk>2009-05-15 17:02:45 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2009-06-01 23:49:57 +0800
commit83a1c8e38b10ca0a66adc4f19e78c69f3796c7e4 (patch)
treef88bc601ed5250b25888ba823efa5884f35ef61e /libempathy/empathy-ft-handler.c
parent0a96c62150fe235167c291ead9a4f180fd80109e (diff)
downloadgsoc2013-empathy-83a1c8e38b10ca0a66adc4f19e78c69f3796c7e4.tar
gsoc2013-empathy-83a1c8e38b10ca0a66adc4f19e78c69f3796c7e4.tar.gz
gsoc2013-empathy-83a1c8e38b10ca0a66adc4f19e78c69f3796c7e4.tar.bz2
gsoc2013-empathy-83a1c8e38b10ca0a66adc4f19e78c69f3796c7e4.tar.lz
gsoc2013-empathy-83a1c8e38b10ca0a66adc4f19e78c69f3796c7e4.tar.xz
gsoc2013-empathy-83a1c8e38b10ca0a66adc4f19e78c69f3796c7e4.tar.zst
gsoc2013-empathy-83a1c8e38b10ca0a66adc4f19e78c69f3796c7e4.zip
Don't leak GErrors.
Diffstat (limited to 'libempathy/empathy-ft-handler.c')
-rw-r--r--libempathy/empathy-ft-handler.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy/empathy-ft-handler.c b/libempathy/empathy-ft-handler.c
index 1f6fd86d2..453080df5 100644
--- a/libempathy/empathy-ft-handler.c
+++ b/libempathy/empathy-ft-handler.c
@@ -663,7 +663,7 @@ hash_job_done (gpointer user_data)
"received %s, calculated %s", priv->content_hash,
g_checksum_get_string (hash_data->checksum));
- hash_data->error = g_error_new_literal (EMPATHY_FT_ERROR_QUARK,
+ error = g_error_new_literal (EMPATHY_FT_ERROR_QUARK,
EMPATHY_FT_ERROR_HASH_MISMATCH,
_("The hash of the received file and the sent one do not match"));
goto cleanup;
@@ -691,6 +691,7 @@ cleanup:
if (error != NULL)
{
emit_error_signal (handler, error);
+ g_clear_error (&error);
}
else
{
@@ -852,6 +853,7 @@ ft_handler_complete_request (EmpathyFTHandler *handler)
_("File transfer not supported by remote contact"));
emit_error_signal (handler, myerr);
+ g_clear_error (&myerr);
return;
}