(svn r26053) -Fix: possible use-after-free

pull/155/head
rubidium 11 years ago
parent d8cd229ef7
commit d32a858d30

@ -991,6 +991,8 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
if (newsel == NULL && c->next == this->active_sel) newsel = c;
if (c == this->active_sel) {
if (newsel == c) newsel = NULL;
*pc = c->next;
delete c;
break;

Loading…
Cancel
Save