mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 18:02:37 +01:00
(svn r17563) -Fix: memory leak when viewing the NewGRF settings of a server
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user