* Print the references for the transport accounts as well
[modest] / src / dbus_api / modest-dbus-callbacks.c
index 739bffb..525d719 100644 (file)
@@ -969,8 +969,8 @@ on_dbus_method_dump_accounts (DBusConnection *con, DBusMessage *message)
                        TNY_ACCOUNT_TYPE_TRANSPORT);
                if (TNY_IS_ACCOUNT(acc)) {
                        gchar *tmp, *url = tny_account_get_url_string (acc);
-                       tmp = g_strdup_printf ("%stransport: '%s': %s\n",
-                                              str, tny_account_get_id (acc), url);
+                       tmp = g_strdup_printf ("%stransport: '%s': %s (refs: %d)\n",
+                                              str, tny_account_get_id (acc), url, ((GObject*)acc)->ref_count);
                        g_free (str);
                        str = tmp;
                        g_free (url);