TheInfiniteKind / moneydance_open

17 stars 12 forks source link

LEAK-REF 18.0 - AccountPanel drag n drop locking references to closed datasets #101

Open yogi1967 opened 1 year ago

yogi1967 commented 1 year ago

When you invoke drag n drop (e.g. drop a new extension on to the Main window), then the book ref gets stuck as AccountPanel is referred to by TransferHandler… or something..?

name in com.infinitekind.moneydance.model.AccountBook#1
book in com.moneydance.apps.md.view.gui.AccountPanel#1
component in javax.swing.TransferHandler$ TransferSupport#1
support in javax.swing. TransferHandler$ DropHandler#1
dtListener in javax.swing. TransferHandler$ Swing Drop Target# 1 [GC root - JNI global]

It seems to be a static reference in SwingDropTarget

The last drag n drop holds the ref.

If you drag and drop in the open dataset, it releases the old dataset…