mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Fixed: A vector value could point to garbage data after being 'unnested'
This commit is contained in:
parent
5643d6c692
commit
06ec6318a9
1 changed files with 1 additions and 0 deletions
|
@ -519,6 +519,7 @@ FxExpression *FxVectorValue::Resolve(FCompileContext&ctx)
|
|||
xyz[2] = xyz[1];
|
||||
xyz[1] = vi->xyz[1];
|
||||
xyz[0] = vi->xyz[0];
|
||||
vi->xyz[0] = vi->xyz[1] = nullptr; // Don't delete our own expressions.
|
||||
delete vi;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue