[telepathy-gabble/master] gabble_connection_ensure_capabilities: don't leak the error, if any
Simon McVittie
simon.mcvittie at collabora.co.uk
Fri Aug 21 04:26:39 PDT 2009
---
src/connection.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/connection.c b/src/connection.c
index fda8b60..2c06718 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -3297,7 +3297,10 @@ gabble_connection_ensure_capabilities (GabbleConnection *self,
priv->resource, new_caps, NULL, priv->caps_serial++);
if (!_gabble_connection_signal_own_presence (self, &error))
- DEBUG ("error sending presence: %s", error->message);
+ {
+ DEBUG ("error sending presence: %s", error->message);
+ g_error_free (error);
+ }
}
}
--
1.5.6.5
More information about the telepathy-commits
mailing list