[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kstyles/kthemestyle
From:       Maks Orlovich <mo002j () mail ! rochester ! edu>
Date:       2002-03-12 22:29:25
[Download RAW message or body]


kdelibs/kstyles/kthemestyle kthemestyle.cpp,1.19,1.20
Author: orlovich
Tue Mar 12 23:29:25 CET 2002
In directory office:/tmp/cvs-serv22752


Modified Files:
         kthemestyle.cpp
Log Message:


Fix exit crashes in Qt-only apps using KDE pixmap themes, when KDE compiled
with fast-malloc; works around what appears to be a bug in glibc libdl:


KThemeStylePlugin()
-    {}
+    {
+#ifdef __GLIBC__
+        dlopen("kthemestyle.so",RTLD_LAZY);
+       //####### Keep reference count up so kdecore w. fast-malloc doesn't get unloaded
+       //####### (Fixes exit crashes with qt-only apps that occur on Linux)
+       //####### This should be rethought after 3.0,
+       //####### as it relies on the implementation-specific behavior
+       //####### of the glibc libdl (finding already loaded libraries based on the
+       //####### soname)
+#endif
+    }
     
     

Michael Matz said he was convinced on core-devel; hope that I didn't misinterpret it...

     

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic