LazMapViewer: Remove duplicate code from TMvDrawPlugin.Destroy
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9582 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
8df360f422
commit
0afda6d375
@ -550,15 +550,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
destructor TMvDrawPlugin.Destroy;
|
destructor TMvDrawPlugin.Destroy;
|
||||||
var
|
|
||||||
idx: Integer;
|
|
||||||
begin
|
begin
|
||||||
if Assigned(FPluginManager) then
|
|
||||||
begin
|
|
||||||
idx := FPluginManager.PluginList.IndexOf(Self);
|
|
||||||
if idx > -1 then
|
|
||||||
FPluginManager.PluginList.Delete(idx);
|
|
||||||
end;
|
|
||||||
FFont.Free;
|
FFont.Free;
|
||||||
FPen.Free;
|
FPen.Free;
|
||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
|
Loading…
Reference in New Issue
Block a user