Skip to content

Commit

Permalink
Fixed wrong destruction of DR preprocessor base class
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Oct 2, 2011
1 parent 85dadcf commit 246ccf6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/shogun/preprocessor/DimensionReductionPreprocessor.cpp
Expand Up @@ -20,10 +20,8 @@ CDimensionReductionPreprocessor::CDimensionReductionPreprocessor()

CDimensionReductionPreprocessor::~CDimensionReductionPreprocessor()
{
delete m_distance;
SG_UNREF(this->parallel);
delete m_kernel;
SG_UNREF(this->parallel);
SG_UNREF(m_distance);
SG_UNREF(m_kernel);
}

bool CDimensionReductionPreprocessor::init(CFeatures* data)
Expand Down

0 comments on commit 246ccf6

Please sign in to comment.