]> git.0d.be Git - empathy.git/commitdiff
check-empathy-chatroom: unref and destroy the account
authorXavier Claessens <xclaesse@src.gnome.org>
Mon, 13 Oct 2008 07:53:50 +0000 (07:53 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 13 Oct 2008 07:53:50 +0000 (07:53 +0000)
svn path=/trunk/; revision=1544

tests/check-empathy-chatroom.c

index 5a696e7aae518b5735286a45cfb86c9cb51f11f5..fca2f128670f28da70908278caed7b9ad191827b 100644 (file)
@@ -21,7 +21,12 @@ create_chatroom (void)
   chatroom = empathy_chatroom_new (account);
   fail_if (chatroom == NULL);
 
+  /* destroy the account as we don't have to add it to the accounts
+   * configuration */
+  /* FIXME: the account is not really removed */
+  mc_account_delete (account);
   g_object_unref (profile);
+  g_object_unref (account);
 
   return chatroom;
 }
@@ -41,7 +46,6 @@ START_TEST (test_empathy_chatroom_new)
   fail_if (favorite);
 
   g_object_unref (chatroom);
-  /* FIXME: unref the account ? */
 }
 END_TEST
 
@@ -114,7 +118,6 @@ START_TEST (test_favorite_and_auto_connect)
   fail_if (favorite);
 
   g_object_unref (chatroom);
-  /* FIXME: unref the account ? */
 }
 END_TEST