empathy r1544 - trunk/tests



Author: xclaesse
Date: Mon Oct 13 07:53:50 2008
New Revision: 1544
URL: http://svn.gnome.org/viewvc/empathy?rev=1544&view=rev

Log:
check-empathy-chatroom: unref and destroy the account

Modified:
   trunk/tests/check-empathy-chatroom.c

Modified: trunk/tests/check-empathy-chatroom.c
==============================================================================
--- trunk/tests/check-empathy-chatroom.c	(original)
+++ trunk/tests/check-empathy-chatroom.c	Mon Oct 13 07:53:50 2008
@@ -21,7 +21,12 @@
   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 @@
   fail_if (favorite);
 
   g_object_unref (chatroom);
-  /* FIXME: unref the account ? */
 }
 END_TEST
 
@@ -114,7 +118,6 @@
   fail_if (favorite);
 
   g_object_unref (chatroom);
-  /* FIXME: unref the account ? */
 }
 END_TEST
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]