fix crash
This commit is contained in:
@@ -77,10 +77,13 @@ MovieTexture_Generic::~MovieTexture_Generic()
|
|||||||
StopThread();
|
StopThread();
|
||||||
if( m_pDecoder )
|
if( m_pDecoder )
|
||||||
m_pDecoder->Close();
|
m_pDecoder->Close();
|
||||||
|
|
||||||
|
/* m_pSprite may reference the texture; delete it before DestroyTexture. */
|
||||||
|
delete m_pSprite;
|
||||||
|
|
||||||
DestroyTexture();
|
DestroyTexture();
|
||||||
|
|
||||||
delete m_pDecoder;
|
delete m_pDecoder;
|
||||||
delete m_pSprite;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete the surface and texture. The decoding thread must be stopped, and this
|
/* Delete the surface and texture. The decoding thread must be stopped, and this
|
||||||
|
|||||||
Reference in New Issue
Block a user