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

Commit fee70d3

Browse files
committed
[ CID 15183 ] Fix incorrect deallocator issue
1 parent d4c4661 commit fee70d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/src/block.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ IO_stat MCBlock::load(IO_handle stream, uint32_t version, bool is_ext)
233233
char *colorname;
234234
if ((stat = IO_read_cstring_legacy(colorname, stream, 2)) != IO_NORMAL)
235235
return checkloadstat(stat);
236-
delete colorname;
236+
MCCStringFree(colorname);
237237
flags &= ~F_HAS_COLOR_NAME;
238238
}
239239
}

0 commit comments

Comments
 (0)