We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 658358c commit 7e684cdCopy full SHA for 7e684cd
features/cellular/framework/common/CellularList.h
@@ -38,6 +38,17 @@ template <class T> class CellularList
38
_tail=NULL;
39
}
40
41
+ ~CellularList()
42
+ {
43
+ T *temp = _head;
44
+ while (temp) {
45
+ _head = _head->next;
46
+ delete temp;
47
+ temp = _head;
48
+ }
49
+ _tail=NULL;
50
51
+
52
T* add_new()
53
{
54
T *temp=new T;
@@ -88,6 +99,7 @@ template <class T> class CellularList
88
99
delete temp;
89
100
temp = _head;
90
101
102
91
103
92
104
93
105
0 commit comments