From: Rafael Fernández López Date: Thu, 21 Jun 2007 11:44:00 +0000 (+0000) Subject: Fix memory problem, thanks to Holger Freyther for pointing out X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/48ff18ebbaceee9ead0696ede9971755612021e4 Fix memory problem, thanks to Holger Freyther for pointing out CCMAIL: zecke@selfish.org CCMAIL: peter.penz@gmx.at svn path=/trunk/KDE/kdebase/apps/; revision=678434 --- diff --git a/src/dolphinitemcategorizer.cpp b/src/dolphinitemcategorizer.cpp index 88e6733c9..38d0e2c16 100644 --- a/src/dolphinitemcategorizer.cpp +++ b/src/dolphinitemcategorizer.cpp @@ -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;