summaryrefslogtreecommitdiff
path: root/pith/msgno.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-07-10 17:38:51 -0600
committerEduardo Chappa <chappa@washington.edu>2018-07-10 17:38:51 -0600
commit7f7ec82c7dc023b9ac7b985d1abe10e7bd3d908e (patch)
tree803ab8ac908b49837bd7aba81976a364d5878952 /pith/msgno.c
parent28d0918a3d1647a8671dbc50d6abd263980f2272 (diff)
downloadalpine-7f7ec82c7dc023b9ac7b985d1abe10e7bd3d908e.tar.xz
* Several improvements to the OPENINGTEXT type of tokens, including:
avoid memory leaks when trying to get the opening text a second time, and get the actual opening text for html messages that are part of a multipart/* text. In addition, Alpine caches this text, so that operations such as resizing, or marking a message deleted, does not make Alpine recompute this text.
Diffstat (limited to 'pith/msgno.c')
-rw-r--r--pith/msgno.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pith/msgno.c b/pith/msgno.c
index 972dcde9..c00f296b 100644
--- a/pith/msgno.c
+++ b/pith/msgno.c
@@ -937,6 +937,9 @@ free_pine_elt(void **sparep)
if((*peltp)->pthrd)
fs_give((void **) &(*peltp)->pthrd);
+ if((*peltp)->firsttext)
+ fs_give((void **) &(*peltp)->firsttext);
+
if((*peltp)->ice)
free_ice(&(*peltp)->ice);