BIT-1785: fix scripts able to access uninitialized variables.

This commit is contained in:
Jon Siwek 2017-02-06 23:30:54 -06:00
parent 3cfe8cd294
commit c857f5c4dd
5 changed files with 38 additions and 0 deletions

View file

@ -33,6 +33,15 @@ Frame::~Frame()
Release();
}
void Frame::Reset(int startIdx)
{
for ( int i = startIdx; i < size; ++i )
{
Unref(frame[i]);
frame[i] = 0;
}
}
void Frame::Release()
{
for ( int i = 0; i < size; ++i )