[opengtl-commits] [153] fix memory leak in MemberArray |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 153
Author: cyrille
Date: 2008-04-29 12:41:53 +0200 (Tue, 29 Apr 2008)
Log Message:
-----------
fix memory leak in MemberArray
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/ArrayStructs_p.h
Modified: trunk/OpenGTL/OpenGTL/GTLCore/ArrayStructs_p.h
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/ArrayStructs_p.h 2008-04-29 09:44:06 UTC (rev 152)
+++ trunk/OpenGTL/OpenGTL/GTLCore/ArrayStructs_p.h 2008-04-29 10:41:53 UTC (rev 153)
@@ -23,6 +23,10 @@
#include "ScopedName.h"
#include "String.h"
+#include "AST/Expression.h"
+
+// TODO move MemberArray in the AST directory
+
namespace GTLCore {
namespace AST {
class Expression;
@@ -44,6 +48,7 @@
{
}
~MemberArray() {
+ delete index;
delete next;
}
bool empty;