designer: fix memory leak in graphpropedits

git-svn-id: trunk@13123 -
This commit is contained in:
paul 2007-12-03 07:06:49 +00:00
parent fa88d7904f
commit 835912fdc8

View File

@ -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;