summaryrefslogtreecommitdiff
path: root/src/context/cdlist.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/context/cdlist.h')
-rw-r--r--src/context/cdlist.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/context/cdlist.h b/src/context/cdlist.h
index fd50d4149..e3c7e155c 100644
--- a/src/context/cdlist.h
+++ b/src/context/cdlist.h
@@ -138,15 +138,9 @@ public:
* Destructor: delete the list
*/
~CDList() throw(AssertionException) {
- if(d_list != NULL) {
- if(d_callDestructor) {
- while(d_size != 0) {
- --d_size;
- d_list[d_size].~T();
- }
- }
- free(d_list);
- }
+ T* list = d_list;
+ destroy();
+ free(list);
}
/**
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback