LazMapViewer: Fix use-after-destroy bug in TMvPluginManager. Issue #39092.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9627 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
b240deb779
commit
2d5ec759c2
@ -1356,6 +1356,8 @@ end;
|
|||||||
|
|
||||||
procedure TMvPluginManager.RemoveMapView(AMapView: TMapView);
|
procedure TMvPluginManager.RemoveMapView(AMapView: TMapView);
|
||||||
begin
|
begin
|
||||||
|
if (csDestroying in ComponentState) then
|
||||||
|
exit;
|
||||||
RemoveMouseButton(AMapView);
|
RemoveMouseButton(AMapView);
|
||||||
FMapList.Remove(AMapView);
|
FMapList.Remove(AMapView);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user