Skip to content

Commit e9ca11e

Browse files
authored
Merge pull request ivanseidel#45 from ruigaspar/master
Add possibility to free memory
2 parents dac3874 + 91640bf commit e9ca11e

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)