changeset 14986:cf4441e2f325 draft

(svn r19597) -Fix: Removing NewGRFs from the GUI list leaked.
author frosch <frosch@openttd.org>
date Sat, 10 Apr 2010 13:00:34 +0000
parents 5fe6e9428971
children b3433772b327
files src/newgrf_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 					}
 				}