Fix memory leak in RemoveTagged.

pull/109/head
EvilSpirit 2016-11-08 23:28:16 +07:00 committed by whitequark
parent 7b9d730a23
commit 13d4a1bb6a
1 changed files with 1 additions and 0 deletions

View File

@ -392,6 +392,7 @@ public:
for(src = 0; src < n; src++) {
if(elem[src].tag) {
// this item should be deleted
elem[src].Clear();
} else {
if(src != dest) {
elem[dest] = elem[src];