aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-import-dialog.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c
index 45ee0b8a3..8d3582eff 100644
--- a/src/empathy-import-dialog.c
+++ b/src/empathy-import-dialog.c
@@ -444,6 +444,13 @@ import_dialog_tree_model_foreach (GtkTreeModel *model,
}
static void
+import_dialog_free (EmpathyImportDialog *dialog)
+{
+ gtk_widget_destroy (dialog->window);
+ g_slice_free (EmpathyImportDialog, dialog);
+}
+
+static void
import_dialog_button_ok_clicked_cb (GtkButton *button,
EmpathyImportDialog *dialog)
{
@@ -464,14 +471,14 @@ import_dialog_button_ok_clicked_cb (GtkButton *button,
gtk_dialog_run (GTK_DIALOG (message));
gtk_widget_destroy (message);
- gtk_widget_hide (GTK_WIDGET (dialog->window));
+ import_dialog_free (dialog);
}
static void
import_dialog_button_cancel_clicked_cb (GtkButton *button,
EmpathyImportDialog *dialog)
{
- gtk_widget_hide (GTK_WIDGET (dialog->window));
+ import_dialog_free (dialog);
}
static void