mirror of
https://github.com/isledecomp/isle-portable.git
synced 2025-09-25 05:31:56 -04:00
Fix delete[] in mxstillpresenter.cpp (#1496)
* Fix delete[] in mxstillpresenter.cpp Without this the game doesn't run on Linux :) * Update LEGO1/omni/src/video/mxstillpresenter.cpp Co-authored-by: Christian Semmler <mail@csemmler.com> * Update mxstillpresenter.cpp --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
This commit is contained in:
parent
45e0e5bdd1
commit
3f0fe654ff
@ -20,7 +20,7 @@ void MxStillPresenter::Destroy(MxBool p_fromDestructor)
|
||||
m_criticalSection.Enter();
|
||||
|
||||
if (m_bitmapInfo) {
|
||||
delete m_bitmapInfo;
|
||||
delete[] ((MxU8*) m_bitmapInfo);
|
||||
}
|
||||
m_bitmapInfo = NULL;
|
||||
|
||||
@ -35,7 +35,7 @@ void MxStillPresenter::Destroy(MxBool p_fromDestructor)
|
||||
void MxStillPresenter::LoadHeader(MxStreamChunk* p_chunk)
|
||||
{
|
||||
if (m_bitmapInfo) {
|
||||
delete m_bitmapInfo;
|
||||
delete[] ((MxU8*) m_bitmapInfo);
|
||||
}
|
||||
|
||||
MxU8* data = new MxU8[p_chunk->GetLength()];
|
||||
@ -53,7 +53,7 @@ void MxStillPresenter::CreateBitmap()
|
||||
m_frameBitmap = new MxBitmap;
|
||||
m_frameBitmap->ImportBitmapInfo(m_bitmapInfo);
|
||||
|
||||
delete m_bitmapInfo;
|
||||
delete[] ((MxU8*) m_bitmapInfo);
|
||||
m_bitmapInfo = NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user