diff options
author | rubidium <rubidium@openttd.org> | 2009-09-17 21:45:47 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-17 21:45:47 +0000 |
commit | 5557d2a224c2fc8ee9c66ceb7f66faf5a5ec44d2 (patch) | |
tree | ba89b7a85d7336b3b0a5c2ee2289828fdc71baf1 | |
parent | 55c0109ee0053d224236ec536629d03d7b6ec13c (diff) | |
download | openttd-5557d2a224c2fc8ee9c66ceb7f66faf5a5ec44d2.tar.xz |
(svn r17563) -Fix: memory leak when viewing the NewGRF settings of a server
-rw-r--r-- | src/newgrf_config.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index aff7ac406..655010244 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -150,6 +150,8 @@ GRFConfig **CopyGRFConfigList(GRFConfig **dst, const GRFConfig *src, bool init_o 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); |