aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-contact-dialogs.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-contact-dialogs.c')
-rw-r--r--libempathy-gtk/empathy-contact-dialogs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c
index 737a449d2..06481cf7d 100644
--- a/libempathy-gtk/empathy-contact-dialogs.c
+++ b/libempathy-gtk/empathy-contact-dialogs.c
@@ -556,8 +556,6 @@ empathy_block_contact_dialog_show (GtkWindow *parent,
}
res = gtk_dialog_run (GTK_DIALOG (dialog));
- gtk_widget_destroy (dialog);
-
if (abusive != NULL) {
if (abusive_check != NULL) {
*abusive = gtk_toggle_button_get_active (
@@ -567,6 +565,7 @@ empathy_block_contact_dialog_show (GtkWindow *parent,
}
}
+ gtk_widget_destroy (dialog);
g_object_unref (manager);
return res == GTK_RESPONSE_REJECT;