swf disposing fixes

This commit is contained in:
2015-02-27 01:56:36 +01:00
parent 2befbcb65d
commit 67fb24a7fd
6 changed files with 56 additions and 8 deletions
@@ -855,6 +855,7 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis
public synchronized void clearAll() {
stop();
clearImagePanel();
timelined = null;
swf = null;
}
@@ -725,6 +725,11 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
}
}
/*for (SWFList swfList : swfs) {
for (SWF swf : swfList) {
swf.clearTagSwfs();
}
}*/
swfs.clear();
oldItem = null;
previewPanel.clear();
@@ -2442,6 +2447,7 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec
@Override
public void run() {
setSourceWorker = null;
try {
get();
} catch (CancellationException ex) {
@@ -286,6 +286,7 @@ public class ABCPanel extends JPanel implements ItemListener, ActionListener, Se
this.abc = null;
constantTable.setModel(new DefaultTableModel());
navigator.clearAbc();
decompiledTextArea.clearScript();
}
public void initSplits() {
@@ -639,6 +639,10 @@ public class DecompiledEditorPane extends LineMarkedEditorPane implements CaretL
this.abcPanel = abcPanel;
}
public void clearScript() {
script = null;
}
public void setScript(ScriptPack scriptLeaf) {
abcPanel.scriptNameLabel.setText(scriptLeaf.getClassPath().toString());
int scriptIndex = scriptLeaf.scriptIndex;