Browse Source

avdevice/decklink_enc: do not reference this after freeing it

Fixes Coverity CID 1396863.

Signed-off-by: Marton Balint <cus@passwd.hu>
tags/n3.3
Marton Balint 8 years ago
parent
commit
a7946c8964
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavdevice/decklink_enc.cpp

+ 1
- 1
libavdevice/decklink_enc.cpp View File

@@ -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;


Loading…
Cancel
Save