Zero out few forgotten pointers in procmsg_msginfo_free().
authorAndrej Kacian <ticho@claws-mail.org>
Sat, 23 Jan 2016 19:41:25 +0000 (20:41 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Sat, 23 Jan 2016 19:41:25 +0000 (20:41 +0100)
This is a follow-up to commit bfb1815.

src/procmsg.c

index d47ebaf4a59e5bafe2be1f47cbcca0a29138b195..d3f11a7d05702f135635e6f8580b477d0efd1a2c 100644 (file)
@@ -1409,6 +1409,7 @@ void procmsg_msginfo_free(MsgInfo **msginfo_ptr)
                                        (GFunc)procmsg_msginfoavatar_free,
                                        NULL);
                        g_slist_free(msginfo->extradata->avatars);
                                        (GFunc)procmsg_msginfoavatar_free,
                                        NULL);
                        g_slist_free(msginfo->extradata->avatars);
+                       msginfo->extradata->avatars = NULL;
                }
                FREENULL(msginfo->extradata->returnreceiptto);
                FREENULL(msginfo->extradata->dispositionnotificationto);
                }
                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);
                FREENULL(msginfo->extradata);
        }
        slist_free_strings_full(msginfo->references);
+       msginfo->references = NULL;
        g_slist_free(msginfo->tags);
        g_slist_free(msginfo->tags);
+       msginfo->tags = NULL;
 
        FREENULL(msginfo->plaintext_file);
 
 
        FREENULL(msginfo->plaintext_file);