changeset 13065:5f56c9d07dd5 draft

(svn r17563) -Fix: memory leak when viewing the NewGRF settings of a server
author rubidium <rubidium@openttd.org>
date Thu, 17 Sep 2009 21:45:47 +0000
parents 0881793d7f93
children d07b4ba6daf8
files src/newgrf_config.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/newgrf_config.cpp
+++ b/src/newgrf_config.cpp
@@ -150,6 +150,8 @@
 			if (src->error->custom_message != NULL) c->error->custom_message = strdup(src->error->custom_message);
 		}
 
+		ClrBit(c->flags, GCF_COPY);
+
 		ClrBit(c->flags, GCF_INIT_ONLY);
 		if (init_only) SetBit(c->flags, GCF_INIT_ONLY);