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 59a1d24ef3
commit f2664a4bd8

View File

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