mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
decklink: Remove unnecessary AddRef
Caused leaking memory
This commit is contained in:
parent
3332beece5
commit
9176348176
@ -6,8 +6,6 @@ DeckLinkDeviceMode::DeckLinkDeviceMode(IDeckLinkDisplayMode *mode, long long id)
|
|||||||
if (mode == nullptr)
|
if (mode == nullptr)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mode->AddRef();
|
|
||||||
|
|
||||||
decklink_string_t decklinkStringName;
|
decklink_string_t decklinkStringName;
|
||||||
if (mode->GetName(&decklinkStringName) == S_OK)
|
if (mode->GetName(&decklinkStringName) == S_OK)
|
||||||
DeckLinkStringToStdString(decklinkStringName, name);
|
DeckLinkStringToStdString(decklinkStringName, name);
|
||||||
|
Loading…
Reference in New Issue
Block a user