"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;
if (error != NULL)
{
emit_error_signal (handler, error);
+ g_clear_error (&error);
}
else
{
_("File transfer not supported by remote contact"));
emit_error_signal (handler, myerr);
+ g_clear_error (&myerr);
return;
}
{
error = error_from_state_change_reason (priv->state_change_reason);
ft_operation_close_with_error (EMPATHY_TP_FILE (weak_object), error);
+ g_clear_error (&error);
}
}