]> git.sesse.net Git - vlc/commitdiff
beos/VideoOutput.cpp: fixed a crash in window destruction
authorEric Petit <titer@videolan.org>
Sat, 11 Dec 2004 13:51:16 +0000 (13:51 +0000)
committerEric Petit <titer@videolan.org>
Sat, 11 Dec 2004 13:51:16 +0000 (13:51 +0000)
modules/gui/beos/VideoOutput.cpp

index 4188c6f2636fc418b6387a0b981e3fa96c2dd5b3..c8fcfc239a40914a567b5514c8cb597b3d29a689 100644 (file)
@@ -762,7 +762,7 @@ VideoWindow::_AllocateBuffers(int width, int height, int* mode)
                 {
                     msg_Dbg( p_vout, "using single-buffered overlay" );
                     bitmap_count = 2;
                 {
                     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;
             }
                 }
                 break;
             }