mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
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:
parent
bda0fecccd
commit
e19954fa18
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue