Bug: memory leak on deleting marker

オープン
#1,419 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@wangela がすでに取り組んでいます。

2023年2月22日 から。

評価

この issue はまだ評価されていません。

説明

Operating system

Windows 10, 19045.2604

Browser Version

Chrome 110.0.5481.104

How severe is the bug?

high

Bug description

When trying to remove a marker from the map using setMap(null) and set the object and all known references to null, marker stays in memory.

Steps to reproduce

You can reproduce it with your own example:
https://jsfiddle.net/gh/get/library/pure/googlemaps/js-samples/tree/master/dist/samples/marker-remove/jsfiddle

  1. open the url
  2. create a heap memory dump in developer tools
  3. search for "_.wh". There are four objects
  4. click on "delete markers" in jsfiddle
  5. click on garbage collector in developer tools
  6. create a new heap memory dump in developer tools
  7. search for "_.wh". There should be one less, but still four availble.
Console log output

No response

主要言語
TypeScript
スター
804
フォーク
826
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googlemaps/js-samples のほかの issue

googlemaps/js-samples の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。