Skip to content

v0.2.55..v0.2.56 changeset BaseRandomForest.cpp

Garret Voltz edited this page Aug 14, 2020 · 3 revisions
diff --git a/tgs/src/main/cpp/tgs/RandomForest/BaseRandomForest.cpp b/tgs/src/main/cpp/tgs/RandomForest/BaseRandomForest.cpp
index 4325080..b6a210f 100644
--- a/tgs/src/main/cpp/tgs/RandomForest/BaseRandomForest.cpp
+++ b/tgs/src/main/cpp/tgs/RandomForest/BaseRandomForest.cpp
@@ -22,7 +22,7 @@
  * This will properly maintain the copyright information. DigitalGlobe
  * copyrights will be updated automatically.
  *
- * @copyright Copyright (C) 2015, 2017, 2018, 2019 DigitalGlobe (http://www.digitalglobe.com/)
+ * @copyright Copyright (C) 2015, 2017, 2018, 2019, 2020 DigitalGlobe (http://www.digitalglobe.com/)
  */
 #include "BaseRandomForest.h"
 
@@ -44,7 +44,10 @@ namespace Tgs
   {
   }
 
-  BaseRandomForest::~BaseRandomForest(){}
+  BaseRandomForest::~BaseRandomForest()
+  {
+    clear();
+  }
 
   void BaseRandomForest::clear()
   {
Clone this wiki locally