From 48ff18ebbaceee9ead0696ede9971755612021e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Thu, 21 Jun 2007 11:44:00 +0000 Subject: [PATCH] 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 --- src/dolphinitemcategorizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.47.3