mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +00:00
- added a destructor zo DFsScript, because if this gets deleted outside the GC process it'll leave an allocated buffer behind, so make sure it always gets destroyed.
This commit is contained in:
parent
f397a4943c
commit
4964f94de1
2 changed files with 14 additions and 0 deletions
|
@ -162,6 +162,19 @@ DFsScript::DFsScript()
|
||||||
lastiftrue = false;
|
lastiftrue = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//==========================================================================
|
||||||
|
//
|
||||||
|
// This is here to delete the locally allocated buffer in case this
|
||||||
|
// gets forcibly destroyed
|
||||||
|
//
|
||||||
|
//==========================================================================
|
||||||
|
|
||||||
|
DFsScript::~DFsScript()
|
||||||
|
{
|
||||||
|
if (data != NULL) delete[] data;
|
||||||
|
data = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
|
@ -336,6 +336,7 @@ public:
|
||||||
// true or false
|
// true or false
|
||||||
|
|
||||||
DFsScript();
|
DFsScript();
|
||||||
|
~DFsScript();
|
||||||
void Destroy();
|
void Destroy();
|
||||||
void Serialize(FSerializer &ar);
|
void Serialize(FSerializer &ar);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue