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:
parent
4c984a13a4
commit
ca517f560d
7 changed files with 7 additions and 0 deletions
|
@ -74,6 +74,7 @@ void mrmsg_unref(mrmsg_t* msg)
|
|||
|
||||
mrmsg_empty(msg);
|
||||
mrparam_unref(msg->m_param);
|
||||
msg->m_magic = 0;
|
||||
free(msg);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue