From f2664a4bd801c91efe3487a0d758cd048b1bfdfb Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 21 Jul 2022 13:14:20 +0200 Subject: [PATCH] DeckLink cap.: release decklinkAttributes (+ removed needless /but harmless/ repeated releasing of decklinkConfiguration) --- 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 c2954d52b..15f1d54c8 100644 --- a/src/video_capture/decklink.cpp +++ b/src/video_capture/decklink.cpp @@ -1443,9 +1443,7 @@ static void cleanup_common(struct vidcap_decklink_state *s) { for (int i = 0; i < s->devices_cnt; ++i) { RELEASE_IF_NOT_NULL(s->state[i].deckLinkConfiguration); - if(s->state[i].deckLinkConfiguration != NULL) { - s->state[i].deckLinkConfiguration->Release(); - } + RELEASE_IF_NOT_NULL(s->state[i].deckLinkAttributes); if(s->state[i].deckLinkInput != NULL) {