Fix memory leak in RemoveTagged.
parent
7b9d730a23
commit
13d4a1bb6a
|
@ -392,6 +392,7 @@ public:
|
||||||
for(src = 0; src < n; src++) {
|
for(src = 0; src < n; src++) {
|
||||||
if(elem[src].tag) {
|
if(elem[src].tag) {
|
||||||
// this item should be deleted
|
// this item should be deleted
|
||||||
|
elem[src].Clear();
|
||||||
} else {
|
} else {
|
||||||
if(src != dest) {
|
if(src != dest) {
|
||||||
elem[dest] = elem[src];
|
elem[dest] = elem[src];
|
||||||
|
|
Loading…
Reference in New Issue