diff options
author | Luc Touraille <touraill@adobe.com> | 2022-04-07 11:38:15 +0200 |
---|---|---|
committer | Luc Touraille <touraill@adobe.com> | 2022-04-09 11:45:58 +0200 |
commit | fca1416b4f4aedc640f05a8183e04b67ea117495 (patch) | |
tree | 9ce47f3e7227fee332fe09437bff6f7d48b5fab2 | |
parent | 36e32cb9a0e2d204e62d67241a6db0c0ccdf7841 (diff) |
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 <Friedemann.Kleint@qt.io>
-rw-r--r-- | sources/shiboken6/libshiboken/basewrapper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; |