diff options
-rw-r--r-- | src/base/lyric_line.cpp | 4 | ||||
-rw-r--r-- | src/base/song.cpp | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/base/lyric_line.cpp b/src/base/lyric_line.cpp index c15ddd58..e5e68fd2 100644 --- a/src/base/lyric_line.cpp +++ b/src/base/lyric_line.cpp @@ -34,6 +34,10 @@ namespace usdx LyricLine::~LyricLine() { + for (std::list<LyricWord*>::iterator it = words.begin(); it != words.end(); it++) { + delete *it; + } + words.clear(); } diff --git a/src/base/song.cpp b/src/base/song.cpp index ad5bb724..1b904810 100644 --- a/src/base/song.cpp +++ b/src/base/song.cpp @@ -90,7 +90,15 @@ namespace usdx Song::~Song(void) { + for (std::list<BPM*>::iterator it = bpm.begin(); it != bpm.end(); it++) { + delete *it; + } + bpm.clear(); + + for (std::list<LyricLine*>::iterator it = lyrics.begin(); it != lyrics.end(); it++) { + delete *it; + } lyrics.clear(); } |