From f835f67a39becad71fbdd70d6032d347372661ee Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 10 Apr 2010 13:00:34 +0000 Subject: [PATCH] (svn r19597) -Fix: Removing NewGRFs from the GUI list leaked. --- src/newgrf_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index a5c4a45cb9..095b6d5dca 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; } }