Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 0bf3ff6

Browse files
authored
Merge pull request #6976 from runrevmark/bugfix-22000
[[ Bug 22000 ]] Fix memory leak when parsing save with format
2 parents f34f40e + cc32a28 commit 0bf3ff6

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docs/notes/bugfix-22000.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix memory leak when parsing save with format

engine/src/cmdss.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,7 @@ MCSave::~MCSave()
11121112
{
11131113
delete target;
11141114
delete filename;
1115+
delete format;
11151116
}
11161117

11171118
Parse_stat MCSave::parse(MCScriptPoint &sp)

0 commit comments

Comments
 (0)