]> git.cworth.org Git - apitrace/blobdiff - common/trace_file_zlib.cpp
Don't call overridden virtual methods from the base destructor.
[apitrace] / common / trace_file_zlib.cpp
index 92cead9188862ddb57d4bf74d79e14082680eac2..b299b5a6bd2879fdaec8937d493ab8a7e64694f9 100644 (file)
@@ -73,6 +73,7 @@ ZLibFile::ZLibFile(const std::string &filename,
 
 ZLibFile::~ZLibFile()
 {
+    close();
 }
 
 bool ZLibFile::rawOpen(const std::string &filename, File::Mode mode)