diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2011-07-20 10:50:21 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-20 11:39:58 +0200 |
commit | 7141596fae74938c907209482a46ecb73df1d4f8 (patch) | |
tree | 5ee85394edd5b6bb7a50d28bf346798dffe413a5 /src/declarative/qml/v8/qv8engine_p.h | |
parent | d8ac2c1011851ae63669bf1a59577aab94c87578 (diff) |
Fix memory leaks with QV8Engine's ExtensionData
The destructor has to be virtual for Deletable in order to call
the destructor of the super-class.
Change-Id: I3aeebe28c0a6bbfbbe3b069e88a6096dd9e173f5
Reviewed-on: http://codereview.qt.nokia.com/1867
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src/declarative/qml/v8/qv8engine_p.h')
-rw-r--r-- | src/declarative/qml/v8/qv8engine_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/v8/qv8engine_p.h b/src/declarative/qml/v8/qv8engine_p.h index 6c05fe4faf..d9f4feeb86 100644 --- a/src/declarative/qml/v8/qv8engine_p.h +++ b/src/declarative/qml/v8/qv8engine_p.h @@ -213,7 +213,7 @@ public: ~QV8Engine(); struct Deletable { - ~Deletable() {} + virtual ~Deletable() {} }; void init(QDeclarativeEngine *); |