# HG changeset patch # User frosch # Date 1270904434 0 # Node ID cf4441e2f3258d5ef53743d626e26540b4dab355 # Parent 5fe6e94289713ed7344b9510c3004839bc54db90 (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 @@ if (c == this->sel) { *pc = c->next; - free(c); + delete c; break; } }