summaryrefslogtreecommitdiffstats
path: root/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp
diff options
context:
space:
mode:
authorJan Grulich <jgrulich@redhat.com>2020-06-15 20:38:37 +0200
committerJan Grulich <jgrulich@redhat.com>2020-06-16 07:52:41 +0200
commitd979f0a8c8cecb37d731c00d128627f711a83ce0 (patch)
treef646157d5473ec6324072fd8bb986f4cd03ac535 /src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp
parentb89d8c406b5809f868f1a06d9ab05096ecb226f3 (diff)
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. Pick-to: 5.15 Change-Id: I6187336bca527e1feeb0902bcfb16f2fbec86d24 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp')
-rw-r--r--src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp b/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp
index 30c43b67dc..fb324afbd8 100644
--- a/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp
+++ b/src/plugins/platformthemes/xdgdesktopportal/qxdgdesktopportaltheme.cpp
@@ -65,7 +65,7 @@ public:
delete baseTheme;
}
- QPlatformTheme *baseTheme;
+ QPlatformTheme *baseTheme = nullptr;
uint fileChooserPortalVersion = 0;
};