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()
{