fix crash

This commit is contained in:
Glenn Maynard
2007-03-21 06:30:12 +00:00
parent 03922a91dc
commit bef66aa6de
@@ -77,10 +77,13 @@ MovieTexture_Generic::~MovieTexture_Generic()
StopThread();
if( m_pDecoder )
m_pDecoder->Close();
/* m_pSprite may reference the texture; delete it before DestroyTexture. */
delete m_pSprite;
DestroyTexture();
delete m_pDecoder;
delete m_pSprite;
}
/* Delete the surface and texture. The decoding thread must be stopped, and this