diff options
Diffstat (limited to 'src/imports/localstorage/plugin.cpp')
-rw-r--r-- | src/imports/localstorage/plugin.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/imports/localstorage/plugin.cpp b/src/imports/localstorage/plugin.cpp index 93c1283ea6..9e94cd8bd8 100644 --- a/src/imports/localstorage/plugin.cpp +++ b/src/imports/localstorage/plugin.cpp @@ -116,6 +116,7 @@ class QQmlSqlDatabaseWrapper : public Object { public: V4_OBJECT2(QQmlSqlDatabaseWrapper, Object) + V4_NEEDS_DESTROY static Heap::QQmlSqlDatabaseWrapper *create(QV8Engine *engine) { @@ -127,9 +128,6 @@ public: } static ReturnedValue getIndexed(Managed *m, uint index, bool *hasProperty); - static void destroy(Managed *that) { - static_cast<QQmlSqlDatabaseWrapper *>(that)->~QQmlSqlDatabaseWrapper(); - } }; } |