DeckLink cap.: release decklinkAttributes

(+ removed needless /but harmless/ repeated releasing of
   decklinkConfiguration)
This commit is contained in:
Martin Pulec
2022-07-21 13:14:20 +02:00
parent 5401043afe
commit 2368d779cd

View File

@@ -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)
{