Browse Source

memory leak fix

johann 5 years ago
parent
commit
1fa93549d5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lazpaintcontrols/lcvectorpolyshapes.pas

+ 2 - 0
lazpaintcontrols/lcvectorpolyshapes.pas

@@ -1119,6 +1119,8 @@ begin
         ADest.FillPolyAntialias(pts, penScan) else
         ADest.FillPolyAntialias(pts, penScan) else
         ADest.FillPolyAntialias(pts, PenColor);
         ADest.FillPolyAntialias(pts, PenColor);
     end;
     end;
+
+    penScan.Free;
   end;
   end;
 end;
 end;