summaryrefslogtreecommitdiff
path: root/src/queue.h
diff options
context:
space:
mode:
authordeva <deva>2005-04-26 09:40:36 +0000
committerdeva <deva>2005-04-26 09:40:36 +0000
commitcbe7247fff0a395f804b35d2047c3994fa0fd675 (patch)
treea0663a2981a47fc9ec3dca6a2db8bb4f56525bfd /src/queue.h
parentd2458728cd226a2651005acfd3241e1a5f77782c (diff)
Removed frame memoryleak
Diffstat (limited to 'src/queue.h')
-rw-r--r--src/queue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queue.h b/src/queue.h
index 8851c57..7352071 100644
--- a/src/queue.h
+++ b/src/queue.h
@@ -70,7 +70,7 @@ Queue<T>::~Queue()
{
if(count != 0) {
fprintf(stderr, "Queue not empty (%d)\n", count);
- while(T *t = pop()) {}//delete t;
+ while(T *t = pop()) delete t;
}
}
@@ -84,7 +84,7 @@ void Queue<T>::push(T *t)
if(limit && count > 0) {
T* tmp = (T*)pop();
- // delete tmp;
+ delete tmp;
}
if(!head) {