Fixed a crash in cSpawnPrepare.
This commit is contained in:
parent
65dc452923
commit
db0f791d43
@ -164,6 +164,8 @@ protected:
|
|||||||
if (m_NumPrepared >= m_MaxIdx)
|
if (m_NumPrepared >= m_MaxIdx)
|
||||||
{
|
{
|
||||||
m_EvtFinished.Set();
|
m_EvtFinished.Set();
|
||||||
|
// Must return here, because "this" may have gotten deleted by the previous line
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Queue another chunk, if appropriate:
|
// Queue another chunk, if appropriate:
|
||||||
|
Loading…
Reference in New Issue
Block a user