浏览代码

Update Exporter.cpp

Fix review finding.
Kim Kulling 6 年之前
父节点
当前提交
6a8e11dbb2
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      code/Exporter.cpp

+ 1 - 4
code/Exporter.cpp

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