Added dispose call in destructor

This commit is contained in:
anschrammh 2019-03-24 23:07:40 +01:00
parent 8f8fbf6218
commit 7668e4dabc

View File

@ -29,6 +29,8 @@ Dictionary::Dictionary(Dictionary const& dictionaryToCopy) //Copy constructor ne
Dictionary::~Dictionary()
{
if(_head == this)
dispose();
free(_parameter);
//_parameter = NULL; Useless, just my c habits
free(_value);