From 7668e4dabcc7f82e2756e1e0fb6862ffea3d02aa Mon Sep 17 00:00:00 2001 From: anschrammh Date: Sun, 24 Mar 2019 23:07:40 +0100 Subject: [PATCH] Added dispose call in destructor --- src/app/Dictionary.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/Dictionary.cpp b/src/app/Dictionary.cpp index 8af2cb8..88218e3 100644 --- a/src/app/Dictionary.cpp +++ b/src/app/Dictionary.cpp @@ -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);