From 08a24c79270e0eded789b64badd3ca35b6cda22b Mon Sep 17 00:00:00 2001 From: gambas Date: Sun, 13 Jun 2021 22:53:27 +0200 Subject: [PATCH] Delete global QThreadPool object on fork only if QT version is at least 5.15.0. [GB.QT5] * BUG: Delete global QThreadPool object on fork only if QT version is at least 5.15.0. --- gb.qt5/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gb.qt5/src/main.cpp b/gb.qt5/src/main.cpp index 1b2604334..41d938a58 100644 --- a/gb.qt5/src/main.cpp +++ b/gb.qt5/src/main.cpp @@ -1263,10 +1263,12 @@ int EXPORT GB_INFO(const char *key, void **value) } #endif +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) void EXPORT GB_FORK(void) { delete QThreadPool::globalInstance(); } +#endif /*#ifndef NO_X_WINDOW extern Time qt_x_time;