diff options
author | frosch <frosch@openttd.org> | 2010-04-10 13:00:34 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-04-10 13:00:34 +0000 |
commit | f835f67a39becad71fbdd70d6032d347372661ee (patch) | |
tree | f592a1e4a5aaa87332ac7a56ef325807dc87eee2 | |
parent | 42f5e930d52210281b4594652f56f387dfc5a981 (diff) | |
download | openttd-f835f67a39becad71fbdd70d6032d347372661ee.tar.xz |
(svn r19597) -Fix: Removing NewGRFs from the GUI list leaked.
-rw-r--r-- | src/newgrf_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index a5c4a45cb..095b6d5dc 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -721,7 +721,7 @@ struct NewGRFWindow : public Window { if (c == this->sel) { *pc = c->next; - free(c); + delete c; break; } } |