[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_1_BRANCH: kdelibs/kdecore
From: Waldo Bastian <bastian () kde ! org>
Date: 2003-02-26 18:00:15
[Download RAW message or body]
CVS commit by waba:
Prevent destruction order problem with libraries.
Fixes problem with io-slaves hanging on exit.
M +2 -1 klibloader.cpp 1.59.2.2
M +2 -0 klibloader.h 1.54.2.1
--- kdelibs/kdecore/klibloader.cpp #1.59.2.1:1.59.2.2
@@ -189,5 +189,6 @@ bool KLibrary::hasSymbol( const char* sy
void KLibrary::unload() const
{
- KLibLoader::self()->unloadLibrary(QFile::encodeName(name()));
+ if (KLibLoader::s_self)
+ KLibLoader::s_self->unloadLibrary(QFile::encodeName(name()));
}
--- kdelibs/kdecore/klibloader.h #1.54:1.54.2.1
@@ -140,4 +140,6 @@ class KLibWrapPrivate;
class KLibLoader : public QObject
{
+ friend class KLibrary;
+
Q_OBJECT
public:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic