From 2368d779cd42be0e2cffbcba588e2acbeaf13f63 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 fe52d2635..a478cb927 100644 --- a/src/video_capture/decklink.cpp +++ b/src/video_capture/decklink.cpp @@ -1430,9 +1430,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) {