X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdatabase.cc;h=3c8d626e93d66aeabc2715a4889aacfe7bffd88a;hb=387828c4356416278fdac8446c904fe4c5ad283d;hp=8177c6b68109f1df0a56364d3a9e55c52920d049;hpb=9034e396b60f380373ca3f1751f06d31bfb954c2;p=notmuch diff --git a/lib/database.cc b/lib/database.cc index 8177c6b6..3c8d626e 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -911,8 +911,7 @@ notmuch_database_add_message (notmuch_database_t *notmuch, * (which may or may not reference an existing document in the * database). */ - /* Use NULL for owner since we want to free this locally. */ - message = _notmuch_message_create_for_message_id (NULL, + message = _notmuch_message_create_for_message_id (notmuch, notmuch, message_id, &private_status);