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:
Ali Polatel 2011-10-03 23:27:32 +03:00
parent 8c51525e82
commit 9b3f16ce71

View file

@ -1769,6 +1769,8 @@ notmuch_database_remove_message (notmuch_database_t *notmuch,
_notmuch_message_delete (message);
else if (status == NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID)
_notmuch_message_sync (message);
notmuch_message_destroy (message);
}
return status;