projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c69ecf8
)
Adds a check that fixes an invalid g_object_unref
author
Sergio Villar Senin
<svillar@igalia.com>
Wed, 17 Dec 2008 12:34:12 +0000
(12:34 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Wed, 17 Dec 2008 12:34:12 +0000
(12:34 +0000)
pmo-drop-split-view-r6917
src/modest-ui-dimming-rules.c
patch
|
blob
|
history
diff --git
a/src/modest-ui-dimming-rules.c
b/src/modest-ui-dimming-rules.c
index
24b9497
..
9261942
100644
(file)
--- a/
src/modest-ui-dimming-rules.c
+++ b/
src/modest-ui-dimming-rules.c
@@
-1900,6
+1900,11
@@
modest_ui_dimming_rules_on_add_to_contacts (ModestWindow *win, gpointer user_dat
g_return_val_if_fail (MODEST_IS_MSG_VIEW_WINDOW (win), FALSE);
msg = modest_msg_view_window_get_message (MODEST_MSG_VIEW_WINDOW (win));
+
+ /* Message is loaded asynchronously, so this could happen */
+ if (!msg)
+ return TRUE;
+
recipients = modest_tny_msg_get_all_recipients_list (msg);
has_recipients_to_add = FALSE;