projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
84f1556
)
Fix missing check
author
Colin Leroy
<colin@colino.net>
Thu, 8 Oct 2015 17:23:15 +0000
(19:23 +0200)
committer
Colin Leroy
<colin@colino.net>
Thu, 8 Oct 2015 17:23:15 +0000
(19:23 +0200)
src/textview.c
patch
|
blob
|
history
diff --git
a/src/textview.c
b/src/textview.c
index a6cceaae73c0db60b69087f665f52d075deef15d..59628237add5c4f0a3419162bdc3f288d62f02c6 100644
(file)
--- a/
src/textview.c
+++ b/
src/textview.c
@@
-1079,8
+1079,10
@@
static void textview_write_body(TextView *textview, MimeInfo *mimeinfo)
filename = procmime_get_tmp_file_name(mimeinfo);
if (procmime_get_part(filename, mimeinfo) == 0) {
tmpfp = g_fopen(filename, "rb");
- textview_show_html(textview, tmpfp, conv);
- fclose(tmpfp);
+ if (tmpfp) {
+ textview_show_html(textview, tmpfp, conv);
+ fclose(tmpfp);
+ }
claws_unlink(filename);
}
g_free(filename);