Fix malloc/delete mismatch
This commit is contained in:
parent
13cd927ab4
commit
a3d89f7e28
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user