mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-05 05:47:41 +02:00
Remove some naked new amd delete in: widgets
This commit is contained in:
committed by
Paul Licameli
parent
0bb17c174e
commit
71efb13161
@@ -411,11 +411,11 @@ Grid::Grid(wxWindow *parent,
|
||||
Grid::~Grid()
|
||||
{
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
int cnt = mChildren.GetCount();
|
||||
|
||||
while (cnt) {
|
||||
GridAx *ax = (GridAx *) mChildren[--cnt];
|
||||
delete ax;
|
||||
int cnt = mChildren.size();
|
||||
while (cnt--) {
|
||||
// PRL: I found this loop destroying right-to-left.
|
||||
// Is the sequence of destruction important?
|
||||
mChildren.pop_back();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user