]> git.sesse.net Git - vlc/commitdiff
If the audio frame allocation fails, avoid leaking the video frame.
authorSteinar Gunderson <sgunderson@bigfoot.com>
Mon, 27 Sep 2010 11:44:05 +0000 (13:44 +0200)
committerSteinar Gunderson <sgunderson@bigfoot.com>
Mon, 27 Sep 2010 11:44:05 +0000 (13:44 +0200)
modules/access/sdi.cpp

index 9d42eae79aec9faac93f216cb0ac5ab270d55ac2..409d8d69445470cd8236982df3a07d2fad6278f2 100644 (file)
@@ -215,6 +215,8 @@ HRESULT DeckLinkCaptureDelegate::VideoInputFrameArrived(IDeckLinkVideoInputFrame
         if( !p_audio_frame )
         {
             msg_Err( p_demux_, "Could not allocate memory for audio frame" );
+            if( p_video_frame )
+                block_Release( p_video_frame );
             return S_OK;
         }