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:38:20 +0800 |
commit | 7f7ef3c33eba6fbef4c3fdd01503db000d6be41e (patch) | |
tree | c5544666419d7d7f4dca70d6bc85cf7b935fa8e1 /libempathy-gtk | |
parent | 6cfff1f1ceaaab0f5baa0d8901cf53af97c6682f (diff) | |
download | gsoc2013-empathy-7f7ef3c33eba6fbef4c3fdd01503db000d6be41e.tar gsoc2013-empathy-7f7ef3c33eba6fbef4c3fdd01503db000d6be41e.tar.gz gsoc2013-empathy-7f7ef3c33eba6fbef4c3fdd01503db000d6be41e.tar.bz2 gsoc2013-empathy-7f7ef3c33eba6fbef4c3fdd01503db000d6be41e.tar.lz gsoc2013-empathy-7f7ef3c33eba6fbef4c3fdd01503db000d6be41e.tar.xz gsoc2013-empathy-7f7ef3c33eba6fbef4c3fdd01503db000d6be41e.tar.zst gsoc2013-empathy-7f7ef3c33eba6fbef4c3fdd01503db000d6be41e.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 561bee3a2..0919671f4 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; } |