Skip to content

Commit 91640bf

Browse files
authored
Add possibility to free memory
Commit regarding with the issue: ivanseidel#28
1 parent dac3874 commit 91640bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LinkedList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class LinkedList{
4444
public:
4545
LinkedList();
4646
LinkedList(int sizeIndex, T _t); //initiate list size and default value
47-
~LinkedList();
47+
virtual ~LinkedList();
4848

4949
/*
5050
Returns current size of LinkedList

0 commit comments

Comments
 (0)