summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uidesigner/vfddesigner.pas6
1 files changed, 2 insertions, 4 deletions
diff --git a/uidesigner/vfddesigner.pas b/uidesigner/vfddesigner.pas
index b8fd6b82..2aa08248 100644
--- a/uidesigner/vfddesigner.pas
+++ b/uidesigner/vfddesigner.pas
@@ -171,8 +171,7 @@ begin
resizer[n] := TwgResizer.Create(self, n)
else
begin
- if resizer[n] <> nil then
- resizer[n].Free;
+ resizer[n].Free;
resizer[n] := nil;
end;
end;
@@ -204,8 +203,7 @@ var
n: integer;
begin
for n := 1 to 8 do
- if resizer[n] <> nil then
- resizer[n].Free;
+ resizer[n].Free;
other.Free;
inherited Destroy;
end;