Skip to content
Snippets Groups Projects
Commit 6836caf0 authored by Alexandre Janniaux's avatar Alexandre Janniaux Committed by Hugo Beauzée-Luyssen
Browse files

decklink: add default virtual destructor

The class has virtual functions and is calling `delete this;` so it
triggers a warning if the class has no virtual destructors.

    modules/access/decklink.cpp: In member function ‘virtual ULONG {anonymous}::DeckLinkCaptureDelegate::Release()’:
    modules/access/decklink.cpp:268:13: warning: deleting object of polymorphic class type ‘{anonymous}::DeckLinkCaptureDelegate’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]
      268 |             delete this;
          |             ^~~~~~~~~~~
parent 3a526cb3
No related branches found
No related tags found
Loading
......@@ -253,6 +253,7 @@ public:
{
m_ref_.store(1);
}
virtual ~DeckLinkCaptureDelegate() = default;
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID, LPVOID *) { return E_NOINTERFACE; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment