[empathy] roster-window: fix crash if empathy_chatroom_manager_find() failed
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] roster-window: fix crash if empathy_chatroom_manager_find() failed
- Date: Thu, 28 Aug 2014 10:11:10 +0000 (UTC)
commit a8a060fb4022f07e60a7c7f97ea1591152cb89cf
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Aug 28 12:10:35 2014 +0200
roster-window: fix crash if empathy_chatroom_manager_find() failed
This function doesn't use/set a GError so we shouldn't try to use it.
src/empathy-roster-window.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/empathy-roster-window.c b/src/empathy-roster-window.c
index 8319227..b953e0e 100644
--- a/src/empathy-roster-window.c
+++ b/src/empathy-roster-window.c
@@ -1301,9 +1301,8 @@ roster_window_join_chatroom_menu_activate_cb (GSimpleAction *action,
account, room);
if (chatroom == NULL)
{
- DEBUG ("Failed to get chatroom '%s' on '%s': %s",
- room, path, error->message);
- g_error_free (error);
+ DEBUG ("Failed to get chatroom '%s' on '%s'",
+ room, path);
goto out;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]