]> git.0d.be Git - empathy.git/commitdiff
Call import_dialog_account_data_free to actually free the account data after being...
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 17 Oct 2008 12:48:01 +0000 (12:48 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 17 Oct 2008 12:48:01 +0000 (12:48 +0000)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=1634

src/empathy-import-dialog.c

index e31a8c4eb7c55c6882e837c8dffef8bdb1e1e418..464e119e6930daf2878a44f6a5f079432ac8ee7a 100644 (file)
@@ -431,12 +431,11 @@ import_dialog_tree_model_foreach (GtkTreeModel *model,
       COL_ACCOUNT_DATA, &data,
       -1);
 
-  if (!to_import)
-      return FALSE;
-
-  if (!import_dialog_add_account (data))
-    dialog->not_imported = TRUE;
+  if (to_import)
+    if (!import_dialog_add_account (data))
+      dialog->not_imported = TRUE;
 
+  import_dialog_account_data_free (data);
   return FALSE;
 }