Real fix for #3598. We were zeroing out wrong pointer.
authorAndrej Kacian <ticho@claws-mail.org>
Mon, 8 Feb 2016 17:26:26 +0000 (18:26 +0100)
committerAndrej Kacian <ticho@claws-mail.org>
Mon, 8 Feb 2016 17:28:08 +0000 (18:28 +0100)
src/procmsg.c

index 153da630d2e1fe8c2fb786f911bac6d3b9c3a7a5..aa3c9a829bcce192867cf69cdb2c068a1a06c140 100644 (file)
@@ -1431,7 +1431,8 @@ void procmsg_msginfo_free(MsgInfo **msginfo_ptr)
 
        FREENULL(msginfo->plaintext_file);
 
-       FREENULL(msginfo);
+       g_free(msginfo);
+       *msginfo_ptr = NULL;
 }
 #undef FREENULL