CVS commit by pfeiffer: don't leak M +6 -6 chatview.cpp 1.108 --- kdenonbeta/kopete/libkopete/ui/chatview.cpp #1.107:1.108 @@ -568,12 +568,12 @@ void ChatView::readOptions() config->setGroup( QString::fromLatin1("ChatViewSettings") ); - QFont *tmpFont = new QFont( KGlobalSettings::generalFont() ); - setFont( config->readFontEntry( QString::fromLatin1("Font"), tmpFont) ); + QFont tmpFont = KGlobalSettings::generalFont(); + setFont( config->readFontEntry( QString::fromLatin1("Font"), &tmpFont) ); - QColor *tmpColor = new QColor( KGlobalSettings::textColor() ); - setFgColor( config->readColorEntry ( QString::fromLatin1("TextColor"), tmpColor ) ); + QColor tmpColor = KGlobalSettings::textColor(); + setFgColor( config->readColorEntry ( QString::fromLatin1("TextColor"), &tmpColor ) ); - tmpColor = new QColor( KGlobalSettings::baseColor() ); - setBgColor( config->readColorEntry ( QString::fromLatin1("BackgroundColor"), tmpColor) ); + tmpColor = KGlobalSettings::baseColor(); + setBgColor( config->readColorEntry ( QString::fromLatin1("BackgroundColor"), &tmpColor) ); //editDock->parent()->setSeperatorPos( config->readNumEntry ( "SplitterWidth", 70 ) ); }