]> git.0d.be Git - empathy.git/commitdiff
roster-window: fix crash if empathy_chatroom_manager_find() failed
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 28 Aug 2014 10:10:35 +0000 (12:10 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 28 Aug 2014 10:10:35 +0000 (12:10 +0200)
This function doesn't use/set a GError so we shouldn't try to use it.

src/empathy-roster-window.c

index 831922760fc0ae109b2dcaf8c958fe3a0bdddbfd..b953e0e8307b32c851a59fa6dc7175b8627b273c 100644 (file)
@@ -1301,9 +1301,8 @@ roster_window_join_chatroom_menu_activate_cb (GSimpleAction *action,
       account, room);
   if (chatroom == NULL)
     {
       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;
     }
 
       goto out;
     }