summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-04-10 13:00:34 +0000
committerfrosch <frosch@openttd.org>2010-04-10 13:00:34 +0000
commitf835f67a39becad71fbdd70d6032d347372661ee (patch)
treef592a1e4a5aaa87332ac7a56ef325807dc87eee2 /src/newgrf_gui.cpp
parent42f5e930d52210281b4594652f56f387dfc5a981 (diff)
downloadopenttd-f835f67a39becad71fbdd70d6032d347372661ee.tar.xz
(svn r19597) -Fix: Removing NewGRFs from the GUI list leaked.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp2
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;
}
}