Commit b78f2482 authored by Eric Petit's avatar Eric Petit

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

parent 5aa10948
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment