[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Fri Oct 1 17:59:40 CEST 2004
CVS commit by staikos:
seems to fix lots of memory corruption on exit on RedHat with their KDE 3.1
M +1 -0 kst.cpp 1.244
M +3 -0 kstdatasource.cpp 1.36
M +2 -0 kstdatasource.h 1.20
--- kdeextragear-2/kst/kst/kst.cpp #1.243:1.244
@@ -289,4 +289,5 @@ KstApp::~KstApp() {
#endif
+ KstDataSource::cleanupForExit();
delete _updateThread;
delete _dcopIface;
--- kdeextragear-2/kst/kst/kstdatasource.cpp #1.35:1.36
@@ -145,4 +145,7 @@ namespace KST {
static KST::PluginInfoList pluginInfo;
+void KstDataSource::cleanupForExit() {
+ pluginInfo.clear();
+}
--- kdeextragear-2/kst/kst/kstdatasource.h #1.19:1.20
@@ -41,4 +41,6 @@ class KstDataSource : public KstObject {
protected:
KstDataSource(const QString& filename, const QString& type);
+ friend class KstApp;
+ static void cleanupForExit();
public:
More information about the Kst
mailing list