Browse Source

* fixed memory leak

git-svn-id: trunk@30165 -
Jonas Maebe 10 years ago
parent
commit
b97e7da6b4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/iosxlocale/src/iosxwstr.pp

+ 1 - 1
packages/iosxlocale/src/iosxwstr.pp

@@ -237,7 +237,7 @@ implementation
       mstr:=CFStringCreateMutableCopy(nil,0,str);
       { lowercase }
       locale:=CFLocaleCopyCurrent;
-      CFStringLowercase(mstr,CFLocaleCopyCurrent);
+      CFStringLowercase(mstr,locale);
       CFRelease(locale);
       { extract the data again }
       range.location:=0;