mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 23:19:28 +02:00
designer: fix memory leak in graphpropedits
git-svn-id: trunk@13123 -
This commit is contained in:
parent
fa88d7904f
commit
835912fdc8
@ -179,8 +179,10 @@ begin
|
||||
ABitmap := TBitmap(GetObjectValue(TBitmap));
|
||||
TheDialog := TGraphicPropertyEditorForm.Create(nil);
|
||||
try
|
||||
If (ABitmap <> nil) and not ABitmap.Empty then begin
|
||||
With TheDialog.Preview.Picture.Bitmap do begin
|
||||
If (ABitmap <> nil) then
|
||||
begin
|
||||
with TheDialog.Preview.Picture.Bitmap do
|
||||
begin
|
||||
Width := ABitmap.Width;
|
||||
Height := ABitmap.Height;
|
||||
Canvas.Brush.Color := clWhite;
|
||||
|
Loading…
Reference in New Issue
Block a user