r23512 by jghali - ScZipHandler: close zip reader/writer in destructor if they have been opened
scribus-commit
scribus-commit at lists.scribus.net
Wed Mar 18 22:23:37 UTC 2020
Author: jghali
Date: Wed Mar 18 22:23:37 2020
New Revision: 23512
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23512
Log:
ScZipHandler: close zip reader/writer in destructor if they have been opened
Modified:
trunk/Scribus/scribus/third_party/zip/scribus_zip.cpp
Modified: trunk/Scribus/scribus/third_party/zip/scribus_zip.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23512&path=/trunk/Scribus/scribus/third_party/zip/scribus_zip.cpp
==============================================================================
--- trunk/Scribus/scribus/third_party/zip/scribus_zip.cpp (original)
+++ trunk/Scribus/scribus/third_party/zip/scribus_zip.cpp Wed Mar 18 22:23:37 2020
@@ -37,6 +37,10 @@
ScZipHandler::~ScZipHandler()
{
+ if (m_uz && m_uz->isOpen())
+ m_uz->closeArchive();
+ if (m_zi && m_zi->isOpen())
+ m_zi->closeArchive();
delete m_uz;
delete m_zi;
}
More information about the scribus-commit
mailing list