diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-03-21 19:56:20 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-03-21 19:56:20 +0000 |
commit | 5f81afb39e9c05dd73a1c03a352601b34a8c5c58 (patch) | |
tree | 906d3ceb97ccc99b88c19fc4624756eaea804b96 /src/list.cpp | |
parent | b4573698043c4ad972f7e80e84d0a88af373a53d (diff) | |
download | libgats-5f81afb39e9c05dd73a1c03a352601b34a8c5c58.tar.gz libgats-5f81afb39e9c05dd73a1c03a352601b34a8c5c58.tar.bz2 libgats-5f81afb39e9c05dd73a1c03a352601b34a8c5c58.tar.xz libgats-5f81afb39e9c05dd73a1c03a352601b34a8c5c58.zip |
Wow, I feel...wow, like a total idiot. I forgot to cleanup list items.
Diffstat (limited to 'src/list.cpp')
-rw-r--r-- | src/list.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/list.cpp b/src/list.cpp index 3e871d6..d15f3b9 100644 --- a/src/list.cpp +++ b/src/list.cpp | |||
@@ -15,6 +15,10 @@ Gats::List::List() | |||
15 | 15 | ||
16 | Gats::List::~List() | 16 | Gats::List::~List() |
17 | { | 17 | { |
18 | for( iterator i = begin(); i; i++ ) | ||
19 | { | ||
20 | delete *i; | ||
21 | } | ||
18 | } | 22 | } |
19 | 23 | ||
20 | void Gats::List::write( Bu::Stream &rOut ) const | 24 | void Gats::List::write( Bu::Stream &rOut ) const |