File r912146.diff of Package kdebase4-runtime
Subject: try to solve logout crashes and lost memory
From: wstephenson@suse.de
Bug:
Patch-upstream: 912146
--- kstyles/oxygen/oxygen.cpp (revision 912145)
+++ kstyles/oxygen/oxygen.cpp (revision 912146)
@@ -85,15 +85,20 @@ K_GLOBAL_STATIC_WITH_ARGS(OxygenStyleHel
static const int gw = 2; // ie glowwidth which we want to un-reserve space for in the tabs
+static void cleanupBefore()
+{
+ OxygenStyleHelper *h = globalHelper;
+ h->cleanupBeforeDelete();
+}
+
OxygenStyle::OxygenStyle() :
KStyle(),
-// kickerMode(false),
-// kornMode(false),
- flatMode(false),
_helper(*globalHelper)
{
_config = _helper.config();
+ qAddPostRoutine(cleanupBefore);
+
// connect to KGlobalSettings signals so we will be notified when the
// system palette (in particular, the contrast) is changed
QDBusConnection::sessionBus().connect( QString(), "/KGlobalSettings",
Index: kstyles/oxygen/oxygen.cpp
===================================================================