mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
lib: destroy message object after message removal
notmuch_database_remove_message() must call notmuch_message_destroy() once it is done handling message removal.
This commit is contained in:
parent
8c51525e82
commit
9b3f16ce71
1 changed files with 2 additions and 0 deletions
|
@ -1769,6 +1769,8 @@ notmuch_database_remove_message (notmuch_database_t *notmuch,
|
||||||
_notmuch_message_delete (message);
|
_notmuch_message_delete (message);
|
||||||
else if (status == NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID)
|
else if (status == NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID)
|
||||||
_notmuch_message_sync (message);
|
_notmuch_message_sync (message);
|
||||||
|
|
||||||
|
notmuch_message_destroy (message);
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|
Loading…
Reference in a new issue