[opengtl-commits] [401] * garbage collect in list statements, fix most of the remaining leaks ! yay ! yay ! |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 401
Author: cyrille
Date: 2008-09-20 12:32:53 +0200 (Sat, 20 Sep 2008)
Log Message:
-----------
* garbage collect in list statements, fix most of the remaining leaks ! yay ! yay !
* add the PixelGroupingPass2 now that you don't need 4GB of ram
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp
trunk/OpenGTL/OpenShiva/tests/raw/CMakeLists.txt
Modified: trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp 2008-09-20 10:11:55 UTC (rev 400)
+++ trunk/OpenGTL/OpenGTL/GTLCore/ParserBase_p.cpp 2008-09-20 10:32:53 UTC (rev 401)
@@ -823,9 +823,9 @@
AST::Statement* statement;
if( d->currentToken.type == Token::STARTBRACE )
{
- statement = parseStatementList();
+ statement = appendCurrentContextGarbageCollecting( parseStatementList() );
} else {
- statement = parseStatement();
+ statement = appendCurrentContextGarbageCollecting( parseStatement() );
}
d->variablesManager.endContext();
return statement;
Modified: trunk/OpenGTL/OpenShiva/tests/raw/CMakeLists.txt
===================================================================
--- trunk/OpenGTL/OpenShiva/tests/raw/CMakeLists.txt 2008-09-20 10:11:55 UTC (rev 400)
+++ trunk/OpenGTL/OpenShiva/tests/raw/CMakeLists.txt 2008-09-20 10:32:53 UTC (rev 401)
@@ -11,4 +11,4 @@
ADD_TEST(${TEST_FILE} ${SHIVATESTER} -c ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_FILE} ${CMAKE_CURRENT_SOURCE_DIR}/../data/dsc_0006-23-07-2008.nef ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_FILE}.png)
ENDFOREACH( TEST_FILE )
-# ADD_TEST(PixelGroupingPass2.shiva ${SHIVATESTER} -c ${CMAKE_CURRENT_SOURCE_DIR}/PixelGroupingPass2.shiva ${CMAKE_CURRENT_SOURCE_DIR}/PixelGroupingPass1.png ${CMAKE_CURRENT_SOURCE_DIR}/PixelGroupingPass2.shiva.png)
+ADD_TEST(PixelGroupingPass2.shiva ${SHIVATESTER} -c ${CMAKE_CURRENT_SOURCE_DIR}/PixelGroupingPass2.shiva ${CMAKE_CURRENT_SOURCE_DIR}/PixelGroupingPass1.shiva.png ${CMAKE_CURRENT_SOURCE_DIR}/PixelGroupingPass2.shiva.png)