aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar Ali Polatel <alip@exherbo.org>2011-10-03 23:27:32 +0300
committerGravatar Ali Polatel <alip@exherbo.org>2011-10-04 07:39:57 +0300
commit9b3f16ce715d2371224955bc5b6f948eaa4ee325 (patch)
tree52ef2399b9a762273a0eed2d72ec2aa9d57b4ffc /lib
parent8c51525e8213e074a845ad53d7196453952623dd (diff)
lib: destroy message object after message removal
notmuch_database_remove_message() must call notmuch_message_destroy() once it is done handling message removal.
Diffstat (limited to 'lib')
-rw-r--r--lib/database.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/database.cc b/lib/database.cc
index 9299c8d5..d43e1143 100644
--- a/lib/database.cc
+++ b/lib/database.cc
@@ -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;