diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index 3874fe8..3ce4176 100644
--- a/src/empathy-debug-window.c
+++ b/src/empathy-debug-window.c
@@ -1700,6 +1700,9 @@ debug_window_dispose (GObject *object)
   if (priv->name_owner_changed_signal != NULL)
     tp_proxy_signal_connection_disconnect (priv->name_owner_changed_signal);
 
+  if (priv->new_debug_message_signal != NULL)
+    tp_proxy_signal_connection_disconnect (priv->new_debug_message_signal);
+
   if (priv->proxy != NULL)
     {
       debug_window_set_enabled (EMPATHY_DEBUG_WINDOW (object), FALSE);
@@ -1707,9 +1710,6 @@ debug_window_dispose (GObject *object)
       g_object_unref (priv->proxy);
     }
 
-  if (priv->new_debug_message_signal != NULL)
-    tp_proxy_signal_connection_disconnect (priv->new_debug_message_signal);
-
   if (priv->service_store != NULL)
     g_object_unref (priv->service_store);
 
