From 168a02d4056efbef5c09d6d5810cf174412147c5 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 1 Apr 2022 11:22:56 +0200 Subject: [PATCH] QMetaType: unlock QReadLocker early Unlock the QReadLocker after we're done with the registry, before we perform expensive operations such as I/O and QByteArrayList::join(). Pick-to: 6.3 Change-Id: I96549c517a2b4ffe34a70ea83f8c061ff9620795 Reviewed-by: Fabian Kosmale --- src/corelib/kernel/qmetatype.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp index bfcf546340..c0bc82ed29 100644 --- a/src/corelib/kernel/qmetatype.cpp +++ b/src/corelib/kernel/qmetatype.cpp @@ -207,6 +207,7 @@ const char *QtMetaTypePrivate::typedefNameForType(const QtPrivate::QMetaTypeInte if (it.value() == type_d && it.key() != officialName) otherNames << it.key(); } + l.unlock(); if (!otherNames.isEmpty()) qWarning("QMetaType: type %s has more than one typedef alias: %s, %s", type_d->name, name, otherNames.join(", ").constData());