[Telepathy-commits] [telepathy-sofiasip/master] Don't free a GError before using its data

Mikhail Zabaluev mikhail.zabaluev at nokia.com
Fri Oct 24 11:13:51 PDT 2008


---
 src/text-factory.c |    2 +-
 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;
             }
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list