Fix malloc/delete mismatch

This commit is contained in:
Matthias Melcher 2023-02-27 14:17:25 +01:00
parent 13cd927ab4
commit a3d89f7e28
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ public:
for (int i=0; i<list_size_; i++) {
delete list_[i];
}
delete list_;
::free(list_);
}
list_ = NULL;
list_size_ = 0;

View File

@ -180,7 +180,7 @@ public:
for (int i=0; i<list_size_; i++) {
delete list_[i];
}
delete list_;
::free(list_);
}
list_ = NULL;
list_size_ = 0;