[opengtl-commits] [402] --leaks in ConvertCenter |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 402
Author: cyrille
Date: 2008-09-20 12:38:08 +0200 (Sat, 20 Sep 2008)
Log Message:
-----------
--leaks in ConvertCenter
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/ConvertCenter_p.cpp
trunk/OpenGTL/OpenShiva/OpenShiva/Wrapper_p.cpp
Modified: trunk/OpenGTL/OpenGTL/GTLCore/ConvertCenter_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/ConvertCenter_p.cpp 2008-09-20 10:32:53 UTC (rev 401)
+++ trunk/OpenGTL/OpenGTL/GTLCore/ConvertCenter_p.cpp 2008-09-20 10:38:08 UTC (rev 402)
@@ -74,6 +74,10 @@
ConvertCenter::~ConvertCenter()
{
+ for( std::list< ConvertExpressionFactory* >::iterator it = d->factories.begin(); it != d->factories.end(); ++it)
+ {
+ delete *it;
+ }
delete d;
}
Modified: trunk/OpenGTL/OpenShiva/OpenShiva/Wrapper_p.cpp
===================================================================
--- trunk/OpenGTL/OpenShiva/OpenShiva/Wrapper_p.cpp 2008-09-20 10:32:53 UTC (rev 401)
+++ trunk/OpenGTL/OpenShiva/OpenShiva/Wrapper_p.cpp 2008-09-20 10:38:08 UTC (rev 402)
@@ -232,11 +232,11 @@
imageDataMembers.push_back( GTLCore::Type::StructDataMember(
"memToVec",
GTLCore::Type::Private::createArbitraryType(
- llvm::PointerType::get( image_wrap_mem_to_vec_float_type( _typeManager, _channels ), 0 ) ) ) );
+ llvm::PointerType::get( image_wrap_mem_to_vec_float_type( _typeManager, _channels ), 0 ) ) ) ); // FIXME arbitraty type are leaking
imageDataMembers.push_back( GTLCore::Type::StructDataMember(
"vecToMem",
GTLCore::Type::Private::createArbitraryType(
- llvm::PointerType::get( image_wrap_vec_float_to_mem_type( _typeManager, _channels ), 0 ) ) ) );
+ llvm::PointerType::get( image_wrap_vec_float_to_mem_type( _typeManager, _channels ), 0 ) ) ) ); // FIXME arbitraty type are leaking
const GTLCore::Type* type = _typeManager->d->createStructure( "image" + _suffix, imageDataMembers );
type->d->addFunctionMember( GTLCore::Type::StructFunctionMember(