From 3d149fd1b42e6f3ad247772e42c2ad8ddf82be2f Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 20 Oct 2022 13:59:26 +0200 Subject: [PATCH] DeckLink cap.: fixed Cov. bugs CID 30144{3,4,5} --- src/video_capture/decklink.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/video_capture/decklink.cpp b/src/video_capture/decklink.cpp index 01acb8aaa..5246f2deb 100644 --- a/src/video_capture/decklink.cpp +++ b/src/video_capture/decklink.cpp @@ -1082,9 +1082,7 @@ bool device_state::init(struct vidcap_decklink_state *s, struct tile *t, BMDAudi // Create an IDeckLinkIterator object to enumerate all DeckLink cards in the system IDeckLinkIterator *deckLinkIterator = create_decklink_iterator(true, false); if (deckLinkIterator == NULL) { - vf_free(s->frame); - delete s; - return VIDCAP_INIT_FAIL; + return false; } bool found = false; while (deckLinkIterator->Next(&deckLink) == S_OK) {