Warning, /graphics/krita/packaging/linux/flatpak/patches/qtbase-make-sure-to-correctly-construct-base-platform-theme.patch is written in an unsupported language. File is not indexed.
0001 From 8f45a46e5969898497295608ad0ea93d55291bda Mon Sep 17 00:00:00 2001 0002 From: Jan Grulich <jgrulich@redhat.com> 0003 Date: Wed, 27 May 2020 13:34:37 +0200 0004 Subject: [PATCH] Make sure we correctly construct underlying base platform theme 0005 0006 When the base platform theme is not set to a null pointer, then we might 0007 assume it has been already constructed and later on try to access an 0008 invalid address which will cause a crash. 0009 0010 Change-Id: I1bd6b1f07087baefaa9738d4dd644bb649e3e5df 0011 --- 0012 0013 diff --git a/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp b/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp 0014 index fb65f6d9..72fbb9be 100644 0015 --- a/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp 0016 +++ b/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp 0017 @@ -59,7 +59,7 @@ public: 0018 delete baseTheme; 0019 } 0020 0021 - QPlatformTheme *baseTheme; 0022 + QPlatformTheme *baseTheme = nullptr; 0023 }; 0024 0025 QXdgDesktopPortalTheme::QXdgDesktopPortalTheme() 0026