[evolution/webkit: 93/113] Fix a minor memory leak
- From: Dan VrÃtil <dvratil src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/webkit: 93/113] Fix a minor memory leak
- Date: Tue, 10 Jan 2012 09:56:25 +0000 (UTC)
commit 1a5cf7d60b2fadfec7674a1b595d59a1de2baea7
Author: Dan VrÃtil <dvratil redhat com>
Date: Wed Jan 4 12:03:58 2012 +0100
Fix a minor memory leak
mail/em-format-html.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-format-html.c b/mail/em-format-html.c
index 86758dc..02073ba 100644
--- a/mail/em-format-html.c
+++ b/mail/em-format-html.c
@@ -1311,6 +1311,11 @@ efh_preparse (EMFormat *emf)
EMFormatHTML *efh = EM_FORMAT_HTML (emf);
+ if (!emf->message) {
+ efh->priv->can_load_images = FALSE;
+ return;
+ }
+
addr = camel_mime_message_get_from (emf->message);
efh->priv->can_load_images = em_utils_in_addressbook (addr, FALSE);
}
@@ -2506,4 +2511,4 @@ em_format_html_can_load_images (EMFormatHTML *efh)
return ((efh->priv->image_loading_policy == E_MAIL_IMAGE_LOADING_POLICY_ALWAYS) ||
((efh->priv->image_loading_policy == E_MAIL_IMAGE_LOADING_POLICY_SOMETIMES) &&
efh->priv->can_load_images));
-}
\ No newline at end of file
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]