aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/interactive/test-empathy-contact-blocking-dialog.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/interactive/test-empathy-contact-blocking-dialog.c b/tests/interactive/test-empathy-contact-blocking-dialog.c
index 11f199fb9..6c5615ec3 100644
--- a/tests/interactive/test-empathy-contact-blocking-dialog.c
+++ b/tests/interactive/test-empathy-contact-blocking-dialog.c
@@ -23,6 +23,8 @@
#include <gtk/gtk.h>
+#include <libempathy/empathy-contact-manager.h>
+
#include <libempathy-gtk/empathy-ui-utils.h>
#include <libempathy-gtk/empathy-contact-blocking-dialog.h>
@@ -30,11 +32,13 @@ int
main (int argc,
char **argv)
{
+ EmpathyContactManager *manager;
GtkWidget *dialog;
gtk_init (&argc, &argv);
empathy_gtk_init ();
+ manager = empathy_contact_manager_dup_singleton ();
dialog = empathy_contact_blocking_dialog_new (NULL);
g_signal_connect_swapped (dialog, "response",
@@ -44,5 +48,8 @@ main (int argc,
gtk_main ();
+ gtk_widget_destroy (dialog);
+ g_object_unref (manager);
+
return 0;
}