Commit b929b8b8 authored by Marco Van de Voort's avatar Marco Van de Voort
Browse files

* fix for #34185, pallette not nilled, causes problems when reader is recycled.

git-svn-id: trunk@39676 -
parent 0b9ee238
......@@ -833,7 +833,7 @@ procedure TFPReaderPNG.InternalRead (Str:TStream; Img:TFPCustomImage);
ZData.Free;
if not img.UsePalette and assigned(FPalette) then
begin
FPalette.Free;
FreeAndNil(FPalette);
end;
end;
end;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment