mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r19597) -Fix: Removing NewGRFs from the GUI list leaked.
This commit is contained in:
parent
42f5e930d5
commit
f835f67a39
|
@ -721,7 +721,7 @@ struct NewGRFWindow : public Window {
|
||||||
|
|
||||||
if (c == this->sel) {
|
if (c == this->sel) {
|
||||||
*pc = c->next;
|
*pc = c->next;
|
||||||
free(c);
|
delete c;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue