diff options
| author | Rafael Fernández López <[email protected]> | 2007-06-21 11:44:00 +0000 |
|---|---|---|
| committer | Rafael Fernández López <[email protected]> | 2007-06-21 11:44:00 +0000 |
| commit | 48ff18ebbaceee9ead0696ede9971755612021e4 (patch) | |
| tree | bdfd7d76dda88def86d9217679b50a2522bfc6d0 /src/dolphinitemcategorizer.cpp | |
| parent | 689a80543f458e4ffb52de73005357212901a00c (diff) | |
Fix memory problem, thanks to Holger Freyther for pointing out
CCMAIL: [email protected]
CCMAIL: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=678434
Diffstat (limited to 'src/dolphinitemcategorizer.cpp')
| -rw-r--r-- | src/dolphinitemcategorizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
