commit cbc36707c3f39c95ea45d83428ca15a06cc979be
parent bfb18150efae6fc3eb1c7f436e1ffc86c8e375fa
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Sat, 23 Jan 2016 20:41:25 +0100
Zero out few forgotten pointers in procmsg_msginfo_free().
This is a follow-up to commit bfb1815.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/procmsg.c b/src/procmsg.c
@@ -1409,6 +1409,7 @@ void procmsg_msginfo_free(MsgInfo **msginfo_ptr)
(GFunc)procmsg_msginfoavatar_free,
NULL);
g_slist_free(msginfo->extradata->avatars);
+ msginfo->extradata->avatars = NULL;
}
FREENULL(msginfo->extradata->returnreceiptto);
FREENULL(msginfo->extradata->dispositionnotificationto);
@@ -1425,7 +1426,9 @@ void procmsg_msginfo_free(MsgInfo **msginfo_ptr)
FREENULL(msginfo->extradata);
}
slist_free_strings_full(msginfo->references);
+ msginfo->references = NULL;
g_slist_free(msginfo->tags);
+ msginfo->tags = NULL;
FREENULL(msginfo->plaintext_file);