(svn r17563) -Fix: memory leak when viewing the NewGRF settings of a server

This commit is contained in:
rubidium 2009-09-17 21:45:47 +00:00
parent 55c0109ee0
commit 5557d2a224
1 changed files with 2 additions and 0 deletions

View File

@ -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);