dart-lang / leak_tracker

A framework for memory leak tracking for Dart and Flutter applications.
https://pub.dev/packages/leak_tracker
BSD 3-Clause "New" or "Revised" License
396 stars 23 forks source link

Fix handling of double tracking for an object. #226

Closed polina-c closed 7 months ago

polina-c commented 7 months ago

Dispatch of creation and disposal should be idempotent. Leak tracker should not fail or track the same object twice.

Issue https://github.com/dart-lang/leak_tracker/issues/118 suggests more advanced handling.