- really *ignore* the account param when getting local folders
(this fixes a bug when moving folders to trash)
- fix a leak (the result of a _get_current of a tny-list should
be unref'd)
pmo-trunk-r776
folders = TNY_LIST (tny_simple_list_new ());
/* no need to do this _async, as these are local folders */
- tny_folder_store_get_folders (TNY_FOLDER_STORE (account),
+ tny_folder_store_get_folders (TNY_FOLDER_STORE (local_account),
folders, NULL, NULL);
iter = tny_list_create_iterator (folders);
special_folder = folder;
break;
}
+ g_object_unref (G_OBJECT(folder));
tny_iterator_next (iter);
}
g_object_unref (G_OBJECT (folders));