mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r17563) -Fix: memory leak when viewing the NewGRF settings of a server
This commit is contained in:
parent
55c0109ee0
commit
5557d2a224
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue