]> git.sesse.net Git - vlc/blobdiff - modules/access/sdi.cpp
If the audio frame allocation fails, avoid leaking the video frame.
[vlc] / 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;
         }