Update Exporter.cpp

Fix review finding.
pull/2218/head
Kim Kulling 2018-11-13 13:10:16 +01:00 committed by GitHub
parent 3d57b86349
commit 6a8e11dbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -212,6 +212,7 @@ public:
for( unsigned int a = 0; a < mPostProcessingSteps.size(); a++) { for( unsigned int a = 0; a < mPostProcessingSteps.size(); a++) {
delete mPostProcessingSteps[a]; delete mPostProcessingSteps[a];
} }
delete mProgressHandler;
} }
public: public:
@ -246,10 +247,6 @@ Exporter :: Exporter()
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
Exporter::~Exporter() { Exporter::~Exporter() {
FreeBlob(); FreeBlob();
if (pimpl->mIsDefaultProgressHandler) {
delete pimpl->mProgressHandler;
pimpl->mProgressHandler = nullptr;
}
delete pimpl; delete pimpl;
} }