Explorar o código

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

git-svn-id: trunk@39676 -
marco %!s(int64=7) %!d(string=hai) anos
pai
achega
b929b8b8eb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-image/src/fpreadpng.pp

+ 1 - 1
packages/fcl-image/src/fpreadpng.pp

@@ -833,7 +833,7 @@ begin
     ZData.Free;
     if not img.UsePalette and assigned(FPalette) then
       begin
-      FPalette.Free;
+      FreeAndNil(FPalette);
       end;
   end;
 end;