From 09f73b32a68a51146b55f970fe8a1b389a5ef650 Mon Sep 17 00:00:00 2001 From: Harlan Wilton Date: Thu, 19 Mar 2026 02:28:07 +1100 Subject: [PATCH] fix: prevent memory leak in ScriptGoogleMapsAdvancedMarkerElement Track unmounted state so async marker creation is aborted if the component unmounts before `importLibrary('marker')` resolves. Previously the marker would be created and attached to the map with no owner to clean it up. Resolves #646 --- .../GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue b/src/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue index 5a7ba91b6..2aaa65c0d 100644 --- a/src/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue +++ b/src/runtime/components/GoogleMaps/ScriptGoogleMapsAdvancedMarkerElement.vue @@ -1,7 +1,7 @@