author | zautrix <zautrix> | 2004-10-23 14:56:10 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-10-23 14:56:10 (UTC) |
commit | a682b1d39c63cff8d709c67460569c70b661d889 (patch) (side-by-side diff) | |
tree | dd5cb4052b07927b63bafa68b2fd6d40bce6a6dc /libkdepim | |
parent | 73c0cb5307a8276f628765c651ef0284b85d64de (diff) | |
download | kdepimpi-a682b1d39c63cff8d709c67460569c70b661d889.zip kdepimpi-a682b1d39c63cff8d709c67460569c70b661d889.tar.gz kdepimpi-a682b1d39c63cff8d709c67460569c70b661d889.tar.bz2 |
fixed several memory leaks
-rw-r--r-- | libkdepim/externalapphandler.cpp | 12 | ||||
-rw-r--r-- | libkdepim/externalapphandler.h | 2 | ||||
-rw-r--r-- | libkdepim/kpimglobalprefs.cpp | 3 |
3 files changed, 12 insertions, 5 deletions
diff --git a/libkdepim/externalapphandler.cpp b/libkdepim/externalapphandler.cpp index 779b20e..9085673 100644 --- a/libkdepim/externalapphandler.cpp +++ b/libkdepim/externalapphandler.cpp @@ -61,7 +61,7 @@ QCopTransferItem::QCopTransferItem(int usedSourceParameters, const QString& sour { //sourceMessage passes later three parameters: sourceChannel, uid, param1 if (_usedSourceParameters == 0) - _sourceMessageParameters = "(QString,QString)"; + _sourceMessageParameters = "QString,QString)"; else if (_usedSourceParameters == 1) _sourceMessageParameters = "(QString,QString,QString)"; else if (_usedSourceParameters == 2) @@ -257,6 +257,10 @@ bool QCopMapTransferItem::appMessage( const QCString& cmsg, const QByteArray& da * ********************************************************************************/ +QCopListTransferItem::~QCopListTransferItem() +{ + +} QCopListTransferItem::QCopListTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage) : QCopTransferItem(usedSourceParameters, sourceMessage, targetChannel,targetMessage) @@ -375,7 +379,11 @@ ExternalAppHandler::ExternalAppHandler() } ExternalAppHandler::~ExternalAppHandler() -{ +{ + delete mNameEmailUidListFromKAPITransfer; + //delete mFindByEmailFromKAPITransfer; + delete mDisplayDetails; + delete mBirthdayListFromKAPITransfer; } void ExternalAppHandler::receivedNameEmailUidList_Slot(const QString& uid, diff --git a/libkdepim/externalapphandler.h b/libkdepim/externalapphandler.h index 4c6f1ea..6f5d345 100644 --- a/libkdepim/externalapphandler.h +++ b/libkdepim/externalapphandler.h @@ -100,7 +100,7 @@ class QCopListTransferItem : public QCopTransferItem Q_OBJECT public: QCopListTransferItem(int usedSourceParameters, const QString& sourceMessage, const QString& targetChannel, const QString& targetMessage); - + ~QCopListTransferItem(); bool sendMessageToSource(const QString& uid, const QStringList& list1, const QStringList& list2, const QStringList& list3, const QStringList& list4, const QStringList& list5, const QStringList& list6); diff --git a/libkdepim/kpimglobalprefs.cpp b/libkdepim/kpimglobalprefs.cpp index 3771569..0fdc3e4 100644 --- a/libkdepim/kpimglobalprefs.cpp +++ b/libkdepim/kpimglobalprefs.cpp @@ -144,6 +144,7 @@ void KPimGlobalPrefs::setGlobalConfig() br = nbr+1; int se, ee, st, et; mLocaleDict = new QDict<QString>; + mLocaleDict->setAutoDelete( true ); QString end = "{ \"\",\"\" }"; while ( (line != end) && (br > 1) ) { //qDebug("%d *%s* ", br, line.latin1()); @@ -188,8 +189,6 @@ KPimGlobalPrefs::~KPimGlobalPrefs() sInstance = staticDeleterGP.setObject(0); else qDebug("Whats this? Error in KPimGlobalPrefs::~KPimGlobalPrefs() ?"); - //qDebug("KPimGlobalPrefs::~KPimGlobalPrefs() "); - writeConfig(); if ( mLocaleDict ) delete mLocaleDict; } |