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:
wp_xxyyzz 2025-02-12 10:29:54 +00:00
parent b240deb779
commit 2d5ec759c2

View File

@ -1356,6 +1356,8 @@ end;
procedure TMvPluginManager.RemoveMapView(AMapView: TMapView);
begin
if (csDestroying in ComponentState) then
exit;
RemoveMouseButton(AMapView);
FMapList.Remove(AMapView);
end;