]> git.notmuchmail.org Git - notmuch/commit
lib: Let Xapian manage the memory for FieldProcessors
authorDavid Bremner <david@tethera.net>
Fri, 17 Feb 2017 03:07:50 +0000 (23:07 -0400)
committerDavid Bremner <david@tethera.net>
Sun, 19 Feb 2017 02:18:06 +0000 (22:18 -0400)
commit0e037c34dd4b7eb9be96e62e0ee18260291de1b2
treed92b8d55e3e7f2797c8a32628dc02ddb9f5b0a0a
parente30fa4182fbae7b302d1e90de9f36a8d08a47c1b
lib: Let Xapian manage the memory for FieldProcessors

It turns out this is exactly what release() is for; Xapian will
deallocate the objects when it's done with them.
lib/database-private.h
lib/database.cc