silentsugar / abc4j

Automatically exported from code.google.com/p/abc4j
1 stars 0 forks source link

TunePlayer don't release memory after stopping #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Sorry for bad english..
I try to play/stop tune from textarea by pressing button and all seems to be 
good, but TunePlayer it don't release memory after stop-method.
I'm new in JAVA, so don't know: Is it my mistake or not?

    class PlayTune implements ActionListener {
        public void actionPerformed(ActionEvent e) {
            if (player.isPlaying()) {
                player.stop();
            }
            else {
                if (!tuneEditArea.getText().isEmpty()) {
                    tuneAsString = tuneEditArea.getText();
                } else {
                    tuneAsString = "";
                }
                Tune tune = new TuneParser().parse(tuneAsString);
                player.start();
                player.play(tune);
            }
        }
    }

What version of the product are you using? On what operating system?
Windows 8 Pro x64, NetBeans IDE 7.2.1, JDK 1.7u15 x64

Original issue reported on code.google.com by freetush...@gmail.com on 3 Mar 2013 at 11:40

GoogleCodeExporter commented 9 years ago
* TunePlayer does't release memory

Original comment by freetush...@gmail.com on 11 Mar 2013 at 10:52

GoogleCodeExporter commented 9 years ago
Yep, it doesn't release memory

Original comment by terrylee...@gmail.com on 7 May 2013 at 11:50