Fixed memory leak caused by return statement parsing
This commit is contained in:
parent
70c663b253
commit
89ca14a587
2 changed files with 6 additions and 0 deletions
|
|
@ -3525,6 +3525,11 @@ FxReturnStatement::FxReturnStatement(FxVMFunctionCall *call, const FScriptPositi
|
|||
{
|
||||
}
|
||||
|
||||
FxReturnStatement::~FxReturnStatement()
|
||||
{
|
||||
SAFE_DELETE(Call);
|
||||
}
|
||||
|
||||
FxExpression *FxReturnStatement::Resolve(FCompileContext &ctx)
|
||||
{
|
||||
CHECKRESOLVED();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue