Added dispose call in destructor
This commit is contained in:
parent
8f8fbf6218
commit
7668e4dabc
@ -29,6 +29,8 @@ Dictionary::Dictionary(Dictionary const& dictionaryToCopy) //Copy constructor ne
|
|||||||
|
|
||||||
Dictionary::~Dictionary()
|
Dictionary::~Dictionary()
|
||||||
{
|
{
|
||||||
|
if(_head == this)
|
||||||
|
dispose();
|
||||||
free(_parameter);
|
free(_parameter);
|
||||||
//_parameter = NULL; Useless, just my c habits
|
//_parameter = NULL; Useless, just my c habits
|
||||||
free(_value);
|
free(_value);
|
||||||
|
Loading…
Reference in New Issue
Block a user