mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 03:20:45 +00:00
swf disposing fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user