diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-05-11 14:50:10 -0400 |
---|---|---|
committer | Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> | 2011-05-11 14:50:10 -0400 |
commit | 67c955953493fa5ddac776defd23f1cad262eb14 (patch) | |
tree | 04f5a14848fb79af81aa2572d287a43b67a78232 | |
parent | 434cb20f817b8e2d1a95089e21d0b0102e9ee0b5 (diff) |
Don't leak newly created GError
-rw-r--r-- | telepathy-logger/text-channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/telepathy-logger/text-channel.c b/telepathy-logger/text-channel.c index 338c93f..a2c7f5e 100644 --- a/telepathy-logger/text-channel.c +++ b/telepathy-logger/text-channel.c @@ -217,6 +217,7 @@ get_remote_contact_cb (TpConnection *connection, new_error = g_error_new (error->domain, error->code, "Failed to get remote contact: %s", error->message); _tpl_action_chain_terminate (ctx, new_error); + g_error_free (new_error); } else if (n_failed > 0) { @@ -224,6 +225,7 @@ get_remote_contact_cb (TpConnection *connection, TPL_TEXT_CHANNEL_ERROR_FAILED, "Failed to prepare remote contact."); _tpl_action_chain_terminate (ctx, new_error); + g_error_free (new_error); } else { |