diff --git a/patch/qtbase-make-sure-to-correctly-construct-base-platform-theme.patch b/patch/qtbase-make-sure-to-correctly-construct-base-platform-theme.patch index a813ae0..5bd0f02 100644 --- a/patch/qtbase-make-sure-to-correctly-construct-base-platform-theme.patch +++ b/patch/qtbase-make-sure-to-correctly-construct-base-platform-theme.patch @@ -1,25 +1,26 @@ From 8f45a46e5969898497295608ad0ea93d55291bda Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 27 May 2020 13:34:37 +0200 Subject: [PATCH] Make sure we correctly construct underlying base platform theme When the base platform theme is not set to a null pointer, then we might assume it has been already constructed and later on try to access an invalid address which will cause a crash. Change-Id: I1bd6b1f07087baefaa9738d4dd644bb649e3e5df --- diff --git a/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp b/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp -index 30c43b6..fb324af 100644 +index fb65f6d9..72fbb9be 100644 --- a/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp +++ b/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp -@@ -65,7 +65,7 @@ +@@ -59,7 +59,7 @@ public: delete baseTheme; } - QPlatformTheme *baseTheme; + QPlatformTheme *baseTheme = nullptr; - uint fileChooserPortalVersion = 0; }; + QXdgDesktopPortalTheme::QXdgDesktopPortalTheme() +