aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/lyric_line.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-18 02:52:03 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:44 +0100
commit9d06ae80cfe008db84991cf69b430c8dc87a0fc1 (patch)
tree6ece6b6af3e72b3e0f59bbad936e3fc68ac5bb62 /src/base/lyric_line.cpp
parentd317c56065bf6c386ccf66555594ecea10721597 (diff)
downloadusdx-9d06ae80cfe008db84991cf69b430c8dc87a0fc1.tar.gz
usdx-9d06ae80cfe008db84991cf69b430c8dc87a0fc1.tar.xz
usdx-9d06ae80cfe008db84991cf69b430c8dc87a0fc1.zip
removed more memory leaks
Diffstat (limited to 'src/base/lyric_line.cpp')
-rw-r--r--src/base/lyric_line.cpp4
1 files changed, 4 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();
}