[opengtl-commits] [155] memory leaks fix

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 155
Author:   cyrille
Date:     2008-04-29 13:14:50 +0200 (Tue, 29 Apr 2008)

Log Message:
-----------
memory leaks fix

Modified Paths:
--------------
    trunk/OpenGTL/OpenCTL/tests/library/TestParserNG.h
    trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp


Modified: trunk/OpenGTL/OpenCTL/tests/library/TestParserNG.h
===================================================================
--- trunk/OpenGTL/OpenCTL/tests/library/TestParserNG.h	2008-04-29 10:50:02 UTC (rev 154)
+++ trunk/OpenGTL/OpenCTL/tests/library/TestParserNG.h	2008-04-29 11:14:50 UTC (rev 155)
@@ -62,6 +62,7 @@
         GTLTEST_CHECK( abe_rhs );
         GTLTEST_CHECK_EQUAL( abe_rhs->value(), 2 );
       }
+      delete tree;
     }
 };
 

Modified: trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp	2008-04-29 10:50:02 UTC (rev 154)
+++ trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp	2008-04-29 11:14:50 UTC (rev 155)
@@ -965,6 +965,7 @@
         {
           return new AST::VariableExpression( var, memberArray );
         } else {
+          delete memberArray;
           AST::Expression* stdconst = d->compiler->standardConstant( name.name() );
           if( stdconst )
           {


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/