Commit a7946c89 authored by Marton Balint's avatar Marton Balint

avdevice/decklink_enc: do not reference this after freeing it

Fixes Coverity CID 1396863.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 89a1471a
......@@ -55,7 +55,7 @@ public:
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, LPVOID *ppv) { return E_NOINTERFACE; }
virtual ULONG STDMETHODCALLTYPE AddRef(void) { return ++_refs; }
virtual ULONG STDMETHODCALLTYPE Release(void) { if (!--_refs) delete this; return _refs; }
virtual ULONG STDMETHODCALLTYPE Release(void) { if (!--_refs) {delete this; return 0;} return _refs; }
struct decklink_ctx *_ctx;
AVFrame *_avframe;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment