X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-tny-local-folders-account.c;h=d9e6c2ac30693d8c29e7c4c66bafbe7adf8ff01b;hb=45f0b1d6b76dc808d30a240f604912db81e2019f;hp=4be9efac21156b0ef8d1e58036e623f721a10438;hpb=f0fb7bbb8a0f9760741a88daacb3363b3e5b4551;p=modest diff --git a/src/modest-tny-local-folders-account.c b/src/modest-tny-local-folders-account.c index 4be9efa..d9e6c2a 100644 --- a/src/modest-tny-local-folders-account.c +++ b/src/modest-tny-local-folders-account.c @@ -57,7 +57,8 @@ struct _ModestTnyLocalFoldersAccountPrivate static void get_folders (TnyFolderStore *self, TnyList *list, - TnyFolderStoreQuery *query, + TnyFolderStoreQuery *query, + gboolean refresh, GError **err); static TnyFolder* create_folder (TnyFolderStore *self, @@ -67,6 +68,13 @@ static TnyFolder* create_folder (TnyFolderStore *self, static void modest_tny_local_folders_account_finalize (GObject *object) { + ModestTnyLocalFoldersAccountPrivate *priv; + + priv = TNY_LOCAL_FOLDERS_ACCOUNT_GET_PRIVATE (object); + if (priv->outbox_folder) { + g_object_unref (priv->outbox_folder); + priv->outbox_folder = NULL; + } G_OBJECT_CLASS (modest_tny_local_folders_account_parent_class)->finalize (object); } @@ -147,14 +155,18 @@ modest_tny_local_folders_account_query_passes (TnyFolderStoreQuery *query, TnyFo } static void -get_folders (TnyFolderStore *self, TnyList *list, TnyFolderStoreQuery *query, GError **err) +get_folders (TnyFolderStore *self, + TnyList *list, + TnyFolderStoreQuery *query, + gboolean refresh, + GError **err) { TnyCamelStoreAccountClass *parent_class; ModestTnyLocalFoldersAccountPrivate *priv; /* Call the base class implementation: */ parent_class = g_type_class_peek_parent (MODEST_TNY_LOCAL_FOLDERS_ACCOUNT_GET_CLASS (self)); - parent_class->get_folders (self, list, query, err); + parent_class->get_folders (self, list, query, refresh, err); /* Add our extra folder only if it passes the query */ priv = TNY_LOCAL_FOLDERS_ACCOUNT_GET_PRIVATE (self);