mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
lcl: workaround for fpc bug #0034185 (dangling FPalette pointer in TFPReaderPNG.InternalRead causes AV)
git-svn-id: trunk@58797 -
This commit is contained in:
parent
77686b53f4
commit
37069ae512
@ -873,6 +873,10 @@ begin
|
||||
|
||||
if QWord(PNGComn.Signature) = QWord(PNGSig)
|
||||
then begin
|
||||
{$if FPC_FULLVERSION < 30200}
|
||||
//workaround for fpc bug #0034185 (dangling FPalette pointer in TFPReaderPNG.InternalRead causes AV)
|
||||
if Assigned(PNGReader) then FreeAndNil(PngReader);
|
||||
{$ENDIF}
|
||||
if PNGReader = nil
|
||||
then PNGReader := TLazReaderPNG.Create;
|
||||
ImgReader := PNGReader;
|
||||
|
Loading…
Reference in New Issue
Block a user