[wpdev-commits] wolfpack wolfpack.cpp,1.476,1.477
Brought to you by:
rip,
thiagocorrea
|
From: <dar...@us...> - 2003-11-26 03:59:42
|
Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv7784
Modified Files:
wolfpack.cpp
Log Message:
Fixed an annoying cVariant memory leak.
We should consider switching to PyObject soon.
Index: wolfpack.cpp
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/wolfpack.cpp,v
retrieving revision 1.476
retrieving revision 1.477
diff -C2 -d -r1.476 -r1.477
*** wolfpack.cpp 26 Nov 2003 03:53:53 -0000 1.476
--- wolfpack.cpp 26 Nov 2003 03:59:39 -0000 1.477
***************
*** 352,375 ****
Console::instance()->send( "\n" );
! Console::instance()->send( "SIZEOF(cItem):" + QString::number( sizeof( cItem ) ) );
!
! int x;
!
! QString id = "e75";
! for( x = 0; x < 100000; ++x )
{
! //cItem *it = new cItem();
! //it->Init( true );
! //cItem *it = cItem::createFromScript( "e75" );
! P_ITEM nItem = new cItem;
! nItem->Init( true );
! /*nItem->base =*/ ItemBases::instance()->getItemBase( id );
! const cElement* section = DefManager->getDefinition( WPDT_ITEM, id );
! nItem->applyDefinition( section );
! nItem->onCreate( id );
}
! return 1;
// Scriptmanager can't be in the try{} block because it sometimes throws firstchance exceptions
--- 352,365 ----
Console::instance()->send( "\n" );
! /* Console::instance()->send( "SIZEOF(cItem):" + QString::number( sizeof( cItem ) ) );
!
! Sleep( 5000 );
! for( int x = 0; x < 400000; ++x )
{
! cItem *it = cItem::createFromScript( "e75" );
}
! return 1;*/
// Scriptmanager can't be in the try{} block because it sometimes throws firstchance exceptions
|