summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Zabaluev <mikhail.zabaluev@nokia.com>2008-10-24 21:13:51 +0300
committerMikhail Zabaluev <mikhail.zabaluev@nokia.com>2008-10-24 21:13:51 +0300
commitc151116dad868d72dde0d5c9144289506ce8a8f5 (patch)
tree75f5ea88b2bbef32922588eb529c137cd1c5e3ba
parent5702902c5ce3cbe1cdd74dfadd4bc4d3d00b4b1a (diff)
Don't free a GError before using its data
-rw-r--r--src/text-factory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text-factory.c b/src/text-factory.c
index 1b450f5..2ff0cb4 100644
--- a/src/text-factory.c
+++ b/src/text-factory.c
@@ -370,7 +370,6 @@ tpsip_nua_i_message_cb (TpBaseConnection *conn,
const char *message = NULL;
g_message ("character set conversion failed for the message body: %s", error->message);
- g_error_free (error);
if (error->code == G_CONVERT_ERROR_ILLEGAL_SEQUENCE)
{
@@ -387,6 +386,7 @@ tpsip_nua_i_message_cb (TpBaseConnection *conn,
NUTAG_WITH_THIS(ev->nua),
TAG_END());
+ g_error_free (error);
goto end;
}