From 82b946cccb29eb817e3e85a7fa0be824bf2c94e7 Mon Sep 17 00:00:00 2001 From: mattias Date: Sat, 5 Dec 2015 14:08:46 +0000 Subject: [PATCH] lazutils: fixed dangling pointer git-svn-id: trunk@50646 - --- components/lazutils/utf8process.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lazutils/utf8process.pp b/components/lazutils/utf8process.pp index f3942b0610..1c34cf4d93 100644 --- a/components/lazutils/utf8process.pp +++ b/components/lazutils/utf8process.pp @@ -355,7 +355,7 @@ Const (HIGH_PRIORITY_CLASS,IDLE_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS,REALTIME_PRIORITY_CLASS); -function WStrAsUniquePWideChar(s: UnicodeString): PWideChar; inline; +function WStrAsUniquePWideChar(var s: UnicodeString): PWideChar; inline; begin UniqueString(s); if s<>'' then