Commit 99169e7a authored by Jean-Paul Saman's avatar Jean-Paul Saman

examples/decode_mpeg.c: (CID 17249)

Check for p_stream to be a valid pointer.
parent 728432e3
......@@ -856,7 +856,7 @@ out_of_memory:
fprintf( stderr, "Out of memory\n" );
dvbpsi_out:
if( p_stream->pat.handle )
if( p_stream && p_stream->pat.handle )
{
dvbpsi_pat_detach( p_stream->pat.handle );
dvbpsi_delete( p_stream->pat.handle );
......
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