1
0
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:
Paul Licameli
2016-04-06 18:32:14 -04:00
committed by Paul Licameli
parent 0bb17c174e
commit 71efb13161
15 changed files with 111 additions and 204 deletions

View File

@@ -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
}