beos/VideoOutput.cpp: fixed a crash in window destruction

This commit is contained in:
Eric Petit 2004-12-11 13:51:16 +00:00
parent 5aa1094833
commit b78f248291

View File

@ -762,7 +762,7 @@ VideoWindow::_AllocateBuffers(int width, int height, int* mode)
{
msg_Dbg( p_vout, "using single-buffered overlay" );
bitmap_count = 2;
if( bitmap[2] ) delete bitmap[2];
if( bitmap[2] ) { delete bitmap[2]; bitmap[2] = NULL; }
}
break;
}