fix: fix memory leaks in destroy methods by redfish4ktc · Pull Request #1023 · maxGraph/maxGraph

@redfish4ktc

  - Fix AbstractGraph.destroy() to iterate plugins Map correctly and set null container reference
  - Fix PanningHandler.onDestroy() to call panningManager.destroy()
  - Fix PanningManager.destroy() to call stop() to clear interval timer
  - Fix RubberBandHandler.onDestroy() to remove gestureHandler listener
  - Fix SelectionCellsHandler.onDestroy() to remove listener from selectionModel
  - Add EventSource.destroy() to clear eventListeners, call super.destroy() in children classes
  - Add destroy tests for all modified classes

tbouffard

coderabbitai[bot]

@redfish4ktc

coderabbitai[bot]

coderabbitai[bot]

@redfish4ktc

@redfish4ktc redfish4ktc deleted the fix/994-destroy_panningManager_when_destroy_PanningHandler branch

March 19, 2026 13:22