[empathy/gnome-2-34] ContactSearch: don't leak a GError
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/gnome-2-34] ContactSearch: don't leak a GError
- Date: Wed, 16 Mar 2011 13:43:50 +0000 (UTC)
commit 7f7ef3c33eba6fbef4c3fdd01503db000d6be41e
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Wed Mar 16 13:17:19 2011 +0000
ContactSearch: don't leak a GError
libempathy-gtk/empathy-contact-search-dialog.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-search-dialog.c b/libempathy-gtk/empathy-contact-search-dialog.c
index 561bee3..0919671 100644
--- a/libempathy-gtk/empathy-contact-search-dialog.c
+++ b/libempathy-gtk/empathy-contact-search-dialog.c
@@ -387,12 +387,14 @@ supports_contact_search_cb (GObject *conn,
gpointer user_data)
{
FilterCallbackData *data = user_data;
- GError *myerr = NULL;
+ GError *error = NULL;
TpCapabilities *caps;
- if (!tp_proxy_prepare_finish (conn, result, &myerr))
+ if (!tp_proxy_prepare_finish (conn, result, &error))
{
+ DEBUG ("Error preparing the connection: %s", error->message);
data->callback (FALSE, data->user_data);
+ g_error_free (error);
g_slice_free (FilterCallbackData, data);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]