# HG changeset patch # User frosch # Date 2010-04-10 13:00:34 # Node ID db3faf2d3055651b451c45fafd1f0b478e82fc26 # Parent 5e0b237bace014e95ce28fccfe2e13076648d41b (svn r19597) -Fix: Removing NewGRFs from the GUI list leaked. diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp --- 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; } }