Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/streams/HashedBlockStream.cpp')
-rw-r--r--src/streams/HashedBlockStream.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/streams/HashedBlockStream.cpp b/src/streams/HashedBlockStream.cpp
index c0f97764a..3ad35e30a 100644
--- a/src/streams/HashedBlockStream.cpp
+++ b/src/streams/HashedBlockStream.cpp
@@ -38,6 +38,11 @@ HashedBlockStream::HashedBlockStream(QIODevice* baseDevice, qint32 blockSize)
init();
}
+HashedBlockStream::~HashedBlockStream()
+{
+ close();
+}
+
void HashedBlockStream::init()
{
m_buffer.clear();