From fca1416b4f4aedc640f05a8183e04b67ea117495 Mon Sep 17 00:00:00 2001 From: Luc Touraille Date: Thu, 7 Apr 2022 11:38:15 +0200 Subject: Fix uninitialized variable causing crash when using shiboken.delete The isQAppSingleton flag was not initialized, meaning that any shiboken wrapper could be randomly considered as a QCoreApp one. Pick-to: 6.2 5.15 Change-Id: I96c836762a2ad2a6e8978dee10965c086bd50645 Reviewed-by: Friedemann Kleint --- sources/shiboken6/libshiboken/basewrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sources/shiboken6/libshiboken/basewrapper.cpp b/sources/shiboken6/libshiboken/basewrapper.cpp index 79a80f3c0..0070af672 100644 --- a/sources/shiboken6/libshiboken/basewrapper.cpp +++ b/sources/shiboken6/libshiboken/basewrapper.cpp @@ -582,6 +582,7 @@ static PyObject *_setupNew(SbkObject *self, PyTypeObject *subtype) d->parentInfo = nullptr; d->referredObjects = nullptr; d->cppObjectCreated = 0; + d->isQAppSingleton = 0; self->ob_dict = nullptr; self->weakreflist = nullptr; self->d = d; -- cgit v1.2.3