lib/message-file: close stream in destructor

Without this,

$ make time-test OPTIONS=--small

leads to fatal errors from too many open files.

Thanks to st-gourichon-fid for bringing this problem to my attention in IRC.
This commit is contained in:
David Bremner 2019-05-09 21:23:24 -03:00
parent bda0fecccd
commit e19954fa18

View file

@ -46,6 +46,9 @@ _notmuch_message_file_destructor (notmuch_message_file_t *message)
if (message->message)
g_object_unref (message->message);
if (message->stream)
g_object_unref (message->stream);
return 0;
}