]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix memory problem, thanks to Holger Freyther for pointing out
authorRafael Fernández López <ereslibre@kde.org>
Thu, 21 Jun 2007 11:44:00 +0000 (11:44 +0000)
committerRafael Fernández López <ereslibre@kde.org>
Thu, 21 Jun 2007 11:44:00 +0000 (11:44 +0000)
CCMAIL: zecke@selfish.org
CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=678434

src/dolphinitemcategorizer.cpp

index 88e6733c9eaa3dff0c7886753f5130e8ae4de959..38d0e2c16433bee322c40bc3019faa75b118a4db 100644 (file)
@@ -114,7 +114,8 @@ QString DolphinItemCategorizer::categoryForItem(const QModelIndex& index,
                 {
                     bool validCategory = false;
 
-                    const QChar* currA = data.toString().toUpper().unicode(); // iterator over a
+                    const QString str(data.toString().toUpper());
+                    const QChar* currA = str.unicode();
                     while (!currA->isNull() && !validCategory) {
                         if (currA->isLetter())
                             validCategory = true;