Skip to content

Commit

Permalink
Clear ArrayQueue destructor
Browse files Browse the repository at this point in the history
The member `a` is not dynamically allocated and so should not be deleted.
  • Loading branch information
sdexter72 authored Oct 5, 2017
1 parent 6eca0b0 commit 0da84a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cpp/ArrayQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ ArrayQueue<T>::ArrayQueue() : a(1) {

template<class T>
ArrayQueue<T>::~ArrayQueue() {
delete a;
}

template<class T>
Expand Down

0 comments on commit 0da84a0

Please sign in to comment.