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>
This commit is contained in:
Liang Jian
2014-04-01 14:41:30 +08:00
committed by The Qt Project
parent 155ae9e88b
commit 244c63f72a

View File

@@ -72,6 +72,9 @@ public:
protected:
SampleGrabberCallback() : m_cRef(1) {}
public:
virtual ~SampleGrabberCallback() {}
private:
long m_cRef;
};