* fixed memory leak

git-svn-id: trunk@30165 -
This commit is contained in:
Jonas Maebe 2015-03-11 17:49:51 +00:00
parent fc21845686
commit b97e7da6b4

View File

@ -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;