diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-03-16 21:17:19 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-03-16 21:43:28 +0800 |
commit | 9dbf81ddbdbafb611fa7a29849f5fb54ff0d76b8 (patch) | |
tree | 37fb2066dd7dfe4c18e8dd9b9fe67c6e59e0ea45 /libempathy-gtk | |
parent | ba64e4982bf47cbbb0bd2db754b888ea7affa90a (diff) | |
download | gsoc2013-empathy-9dbf81ddbdbafb611fa7a29849f5fb54ff0d76b8.tar gsoc2013-empathy-9dbf81ddbdbafb611fa7a29849f5fb54ff0d76b8.tar.gz gsoc2013-empathy-9dbf81ddbdbafb611fa7a29849f5fb54ff0d76b8.tar.bz2 gsoc2013-empathy-9dbf81ddbdbafb611fa7a29849f5fb54ff0d76b8.tar.lz gsoc2013-empathy-9dbf81ddbdbafb611fa7a29849f5fb54ff0d76b8.tar.xz gsoc2013-empathy-9dbf81ddbdbafb611fa7a29849f5fb54ff0d76b8.tar.zst gsoc2013-empathy-9dbf81ddbdbafb611fa7a29849f5fb54ff0d76b8.zip |
ContactSearch: don't leak a GError
Diffstat (limited to 'libempathy-gtk')
-rw-r--r-- | 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 29d912687..350879e19 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; } |