Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gsomix authored and Soeren Sonnenburg committed May 2, 2012
1 parent 61b244b commit 3f444b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shogun/lib/DataType.h
Expand Up @@ -109,8 +109,10 @@ template<class T> class SGVector
if (*m_refcount==0 || --(*m_refcount)==0)
{
SG_FREE(vector);
SG_FREE(m_refcount);

vector=NULL;
m_refcount=NULL;
do_free=false;
vlen=0;

Expand Down Expand Up @@ -296,8 +298,10 @@ template<class T> class SGVector
{
if (do_free)
SG_FREE(vector);
SG_FREE(m_refcount);

vector=NULL;
m_refcount=NULL;
do_free=false;
vlen=0;
}
Expand Down

0 comments on commit 3f444b9

Please sign in to comment.