lazutils: added workaround for compiler bug, see bug #23868

git-svn-id: trunk@40237 -
This commit is contained in:
mattias 2013-02-10 10:46:56 +00:00
parent f48c70a01c
commit 60d3756a53

View File

@ -68,11 +68,11 @@ type
FFrameSize : LongInt; FFrameSize : LongInt;
FFrameCache : PByte; FFrameCache : PByte;
FOpen: boolean;
FName: string; FName: string;
FStream: TStream; FStream: TStream;
FOwnedStream: boolean;
FBase,FStoredSize,FPosit: Longint; FBase,FStoredSize,FPosit: Longint;
FOwnedStream: boolean;
FOpen: boolean;
FUsed: boolean; FUsed: boolean;
function GetFilePos: longint; function GetFilePos: longint;
function GetFileSize: longint; function GetFileSize: longint;
@ -364,9 +364,13 @@ const
* *
******************************************************************) ******************************************************************)
procedure TT_Done_Stream( stream : TT_Stream ); procedure TT_Done_Stream( stream : TT_Stream );
var
p: Pointer;
begin begin
if stream.z = nil then exit; if stream.z = nil then exit;
TFreeTypeStream(stream.z).FUsed := false; {$HINT workaround for bug 23868 when compiling with -O2}
p:=stream.z;
TFreeTypeStream(p).FOpen := false;
end; end;
(******************************************************************* (*******************************************************************