From 6e2cff1dbbae76b5901085a1331f51723864a377 Mon Sep 17 00:00:00 2001 From: Steinar Gunderson Date: Mon, 27 Sep 2010 13:44:05 +0200 Subject: [PATCH] If the audio frame allocation fails, avoid leaking the video frame. --- modules/access/sdi.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/access/sdi.cpp b/modules/access/sdi.cpp index 9d42eae79a..409d8d6944 100644 --- a/modules/access/sdi.cpp +++ b/modules/access/sdi.cpp @@ -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; } -- 2.39.2