mirror of
https://github.com/fltk/fltk.git
synced 2026-05-21 22:51:41 +08:00
Fix malloc/delete mismatch
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user