diff options
author | Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | 2010-06-18 02:52:01 (GMT) |
---|---|---|
committer | Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | 2010-06-18 02:52:01 (GMT) |
commit | 9294eee910ee630657749bbd22ea1e5b836fe00e (patch) | |
tree | 416439d0c2ce786ef85741a78988d079ed826271 /src/multimedia/video | |
parent | 8e68084e44b54dc73f41c5d379f0b614248978d7 (diff) | |
download | Qt-9294eee910ee630657749bbd22ea1e5b836fe00e.zip Qt-9294eee910ee630657749bbd22ea1e5b836fe00e.tar.gz Qt-9294eee910ee630657749bbd22ea1e5b836fe00e.tar.bz2 |
Fixed memory lean in QImageVideoBuffer and QMemoryVideoBuffer.
QAbstractVideoBufferPrivate was intended to have virtual desctructor,
otherwise subclasses are not deleted properly.
Reviewed-by: Andrew den Exter
Diffstat (limited to 'src/multimedia/video')
-rw-r--r-- | src/multimedia/video/qabstractvideobuffer_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/multimedia/video/qabstractvideobuffer_p.h b/src/multimedia/video/qabstractvideobuffer_p.h index c72f303..3303b36 100644 --- a/src/multimedia/video/qabstractvideobuffer_p.h +++ b/src/multimedia/video/qabstractvideobuffer_p.h @@ -65,6 +65,9 @@ public: : handleType(QAbstractVideoBuffer::NoHandle) {} + virtual ~QAbstractVideoBufferPrivate() + {} + QAbstractVideoBuffer::HandleType handleType; }; |