projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
12650a0
)
Fixes FWNULL 1/16 & 2/16
author
Sergio Villar Senin
<svillar@igalia.com>
Wed, 18 Mar 2009 17:12:49 +0000
(17:12 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Wed, 18 Mar 2009 17:12:49 +0000
(17:12 +0000)
pmo-trunk-r8169
src/modest-ui-actions.c
patch
|
blob
|
history
diff --git
a/src/modest-ui-actions.c
b/src/modest-ui-actions.c
index
58ae3fb
..
8646f01
100644
(file)
--- a/
src/modest-ui-actions.c
+++ b/
src/modest-ui-actions.c
@@
-6561,6
+6561,9
@@
modest_ui_actions_get_msg_already_deleted_error_msg (ModestWindow *win)
folder = TNY_FOLDER_STORE (tny_header_get_folder (header));
}
folder = TNY_FOLDER_STORE (tny_header_get_folder (header));
}
+ if (!header || !folder)
+ goto frees;
+
/* Get the account type */
account = tny_folder_get_account (TNY_FOLDER (folder));
proto = modest_tny_account_get_protocol_type (account);
/* Get the account type */
account = tny_folder_get_account (TNY_FOLDER (folder));
proto = modest_tny_account_get_protocol_type (account);
@@
-6575,10
+6578,14
@@
modest_ui_actions_get_msg_already_deleted_error_msg (ModestWindow *win)
msg = g_strdup_printf (_("mail_ni_ui_folder_get_msg_folder_error"));
}
msg = g_strdup_printf (_("mail_ni_ui_folder_get_msg_folder_error"));
}
+ frees:
/* Frees */
/* Frees */
- g_object_unref (account);
- g_object_unref (folder);
- g_object_unref (header);
+ if (account)
+ g_object_unref (account);
+ if (folder)
+ g_object_unref (folder);
+ if (header)
+ g_object_unref (header);
return msg;
}
return msg;
}