aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-display.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-display.c')
-rw-r--r--mail/mail-display.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-display.c b/mail/mail-display.c
index 55eae01dca..266c46e1fc 100644
--- a/mail/mail-display.c
+++ b/mail/mail-display.c
@@ -862,8 +862,10 @@ on_url_requested (GtkHTML *html, const char *url, GtkHTMLStream *handle,
g_return_if_fail (urls != NULL);
user_data = g_hash_table_lookup (urls, url);
- if (user_data == NULL)
+ if (user_data == NULL) {
+ gtk_html_end (html, handle, GTK_HTML_STREAM_ERROR);
return;
+ }
if (strncmp (url, "cid:", 4) == 0) {
CamelMedium *medium = user_data;