Android: release deadlock protector from requestPermissions()

Note this would ideally use androiddeadlockprotector.h, but since
it's living under the plugins directory it won't be accessible for
this code without some refactoring.

Fixes: QTBUG-133841
Pick-to: 6.8 6.5
Change-Id: I9b62e7a9809ba5e0782a82b9c07d122de544aece
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
(cherry picked from commit e8aa9ff63850a6ddcac739bc773463d61ec4567f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Assam Boudjelthia 2025-04-23 03:37:04 +03:00 committed by Qt Cherry-pick Bot
parent d6865ad65d
commit b3a550d976

View File

@ -1128,6 +1128,8 @@ requestPermissionsInternal(const QStringList &permissions)
env->DeleteLocalRef(array);
});
QtAndroidPrivate::releaseAndroidDeadlockProtector();
return future;
}