Skip to content

Commit

Permalink
Fixed CMap destroy method to avoid memory leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Sep 2, 2012
1 parent 442ceac commit ad4ac3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shogun/lib/Map.h
Expand Up @@ -439,8 +439,8 @@ IGNORE_IN_CLASSLIST template<class K, class T> class CMap: public CSGObject
CMapNode<K, T>* element = array->get_element(i);
if (element!=NULL)
{
element->key = K();
element->data = T();
//element->key.~K();
//element->data.~T();

if (use_sg_mallocs)
SG_FREE(element);
Expand Down

0 comments on commit ad4ac3c

Please sign in to comment.