diff --git a/src/corelib/kernel/qvariant.cpp b/src/corelib/kernel/qvariant.cpp index c2faca4220..4d1aa911f7 100644 --- a/src/corelib/kernel/qvariant.cpp +++ b/src/corelib/kernel/qvariant.cpp @@ -1479,7 +1479,8 @@ static void customClear(QVariant::Private *d) QMetaType::destruct(d->type, &d->data.ptr); } else { QMetaType::destruct(d->type, d->data.shared->ptr); - delete d->data.shared; + d->data.shared->~PrivateShared(); + operator delete(d->data.shared); } }