diff options
author | Liang Jian <jianliang79@gmail.com> | 2014-04-01 14:41:30 +0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-02 11:23:47 +0200 |
commit | 244c63f72a8ec6aededda40723bf61b7f32bf277 (patch) | |
tree | e15bec44a982c262fd20ec999af2bd58184d6521 | |
parent | 155ae9e88b07ffb6d38f962624b8ef911f1efe45 (diff) |
Fix memory leak in SampleGrabberCallback
Add virtual destructor to SampleGrabberCallback to let it properly
destruct its subclass when calling 'detete this'
Change-Id: I5f74f82314e22225a0a153c7f4bca531a79dd8f9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
-rw-r--r-- | src/plugins/wmf/samplegrabber.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/wmf/samplegrabber.h b/src/plugins/wmf/samplegrabber.h index 7a5c2260b..63cb5fa62 100644 --- a/src/plugins/wmf/samplegrabber.h +++ b/src/plugins/wmf/samplegrabber.h @@ -72,6 +72,9 @@ public: protected: SampleGrabberCallback() : m_cRef(1) {} +public: + virtual ~SampleGrabberCallback() {} + private: long m_cRef; }; |