diff options
Diffstat (limited to 'src/archive.cpp')
-rw-r--r-- | src/archive.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/archive.cpp b/src/archive.cpp index d773f73..b4bee29 100644 --- a/src/archive.cpp +++ b/src/archive.cpp @@ -1,8 +1,5 @@ #include "archive.hpp" - -#include "main_window.hpp" - -#include <algorithm> +#include "config.hpp" namespace getsuyomi { @@ -46,6 +43,8 @@ ZipArchive::~ZipArchive() ZipArchive& ZipArchive::operator=(ZipArchive&& rhs) { + cleanup(); + m_archive = rhs.m_archive; m_sortedIndices = std::move(rhs.m_sortedIndices); m_filenames = std::move(rhs.m_filenames); |