diff --git a/src/app/List.h b/src/app/List.h index d856117..393e05d 100644 --- a/src/app/List.h +++ b/src/app/List.h @@ -228,7 +228,10 @@ public: } int contains(T value) { - return contains(new T(value)); + T *obj = new T(value); + int result = contains(obj); + delete obj; + return result; } unsigned int count() {