1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-06 03:50:08 +02:00

reset magic before structures are free()'d; this catches memory problems earlier

This commit is contained in:
B. Petersen 2018-02-21 23:26:51 +01:00
parent 4c984a13a4
commit ca517f560d
7 changed files with 7 additions and 0 deletions

View file

@ -74,6 +74,7 @@ void mrmsg_unref(mrmsg_t* msg)
mrmsg_empty(msg);
mrparam_unref(msg->m_param);
msg->m_magic = 0;
free(msg);
}