Browse Source

Missed delete in ex7.4 Stack

master
Eric Teunis de Boone 2 years ago
parent
commit
e363d023cd
  1. 3
      ex7.4/Stack.hh

3
ex7.4/Stack.hh

@ -11,6 +11,9 @@ class Stack {
Stack() {
_s = new std::deque<T>();
}
~Stack() {
delete _s;
}
int nitems() { return _s->size() ; }
bool empty() { return (_s->size() == 0) ; }