Fixed access on deleted object.
authorLaurent Aimar <fenrir@videolan.org>
Tue, 12 Jun 2007 21:27:28 +0000 (21:27 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 12 Jun 2007 21:27:28 +0000 (21:27 +0000)
modules/demux/mkv.cpp

index 9308b02..39497fa 100644 (file)
@@ -2190,7 +2190,10 @@ matroska_stream_c *demux_sys_t::AnalyseAllSegmentsFound( demux_t *p_demux, EbmlS
                 p_stream1->segments.push_back( p_segment1 );
             }
             else
+            {
+                p_segment1->segment = NULL;
                 delete p_segment1;
+            }
         }
         if (p_l0->IsFiniteSize() )
         {