mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00:00
MxVariable::Destroy() calls delete this, and is also used by subclasses (#759)
Making the destructor virtual assures the destructor of the subclass is called. This fixes a new-delete-type-mismatch sanitizer error, emitted when exiting the game.
This commit is contained in:
parent
7742fb0493
commit
119b2777b8
@ -12,6 +12,8 @@ class MxVariable {
|
|||||||
// FUNCTION: BETA10 0x1007b750
|
// FUNCTION: BETA10 0x1007b750
|
||||||
MxVariable() {}
|
MxVariable() {}
|
||||||
|
|
||||||
|
virtual ~MxVariable() {}
|
||||||
|
|
||||||
// FUNCTION: BETA10 0x1012a840
|
// FUNCTION: BETA10 0x1012a840
|
||||||
MxVariable(const char* p_key, const char* p_value)
|
MxVariable(const char* p_key, const char* p_value)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user