projects
/
modest
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Fixes a crash in the dimming rules when a window is destroyed and there are pendin...
[modest]
/
src
/
modest-tny-local-folders-account.c
diff --git
a/src/modest-tny-local-folders-account.c
b/src/modest-tny-local-folders-account.c
index
1891dea
..
e16597e
100644
(file)
--- a/
src/modest-tny-local-folders-account.c
+++ b/
src/modest-tny-local-folders-account.c
@@
-67,6
+67,13
@@
static TnyFolder* create_folder (TnyFolderStore *self,
static void
modest_tny_local_folders_account_finalize (GObject *object)
{
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);
}
G_OBJECT_CLASS (modest_tny_local_folders_account_parent_class)->finalize (object);
}
@@
-175,7
+182,7
@@
create_folder (TnyFolderStore *self,
/* If the folder name is been used by our extra folders */
if (modest_tny_local_folders_account_folder_name_in_use (MODEST_TNY_LOCAL_FOLDERS_ACCOUNT (self), name)) {
/* If the folder name is been used by our extra folders */
if (modest_tny_local_folders_account_folder_name_in_use (MODEST_TNY_LOCAL_FOLDERS_ACCOUNT (self), name)) {
- g_set_error (err, TNY_SERVICE_ERROR,
+ g_set_error (err, TNY_ERROR_DOMAIN,
TNY_SERVICE_ERROR_FOLDER_CREATE,
"Folder name already in use");
return NULL;
TNY_SERVICE_ERROR_FOLDER_CREATE,
"Folder name already in use");
return NULL;