[sword-svn] r2056 - trunk/include
scribe at www.crosswire.org
scribe at www.crosswire.org
Tue Jul 3 13:42:40 MST 2007
Author: scribe
Date: 2007-07-03 13:42:38 -0700 (Tue, 03 Jul 2007)
New Revision: 2056
Modified:
trunk/include/stringmgr.h
Log:
Fixed bug where memory wasn't freed and where logic for UTF8 detection was backwards.
Modified: trunk/include/stringmgr.h
===================================================================
--- trunk/include/stringmgr.h 2007-06-27 16:04:24 UTC (rev 2055)
+++ trunk/include/stringmgr.h 2007-07-03 20:42:38 UTC (rev 2056)
@@ -89,8 +89,8 @@
inline char *toupperstr(char *t, unsigned int max = 0) {
return (StringMgr::hasUTF8Support())
- ? StringMgr::getSystemStringMgr()->upperLatin1(t, max)
- : StringMgr::getSystemStringMgr()->upperUTF8(t, max);
+ ? StringMgr::getSystemStringMgr()->upperUTF8(t, max)
+ : StringMgr::getSystemStringMgr()->upperLatin1(t, max);
}
inline char *toupperstr_utf8(char *t, unsigned int max = 0) {
@@ -102,6 +102,7 @@
stdstr(&utf8, b.c_str(), 2);
toupperstr(utf8, strlen(utf8)*2);
b = utf8;
+ delete [] utf8;
return b;
}
More information about the sword-cvs
mailing list