[DirectShow] Fix potention undefined behavior on destruction

The exact warning is:
> deleting object of polymorphic class type which has non-virtual
  destructor might cause undefined behavior

Change-Id: I8f259def3f1f7f776fb31ace9dfcc7145426f5c0
Reviewed-by: Yoann Lopes <yoann.lopes@theqtcompany.com>
This commit is contained in:
Konstantin Ritt
2015-04-11 19:33:20 +04:00
parent e88da21a20
commit 740f16ac60
4 changed files with 8 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ class DirectShowIOSource
{
public:
DirectShowIOSource(DirectShowEventLoop *loop);
~DirectShowIOSource();
virtual ~DirectShowIOSource();
void setDevice(QIODevice *device);
void setAllocator(IMemAllocator *allocator);