Hello,
Can anyone find what the (memory leak) problem is in this code segment:
--------------------------
void
foo1( void )
{
A *a = appArray.iterate( 0 );
B *b;
b = new B;
...
b = foo2( a->id );
...
delete b;
}
Note that foo2 returns B*
---------------------------
Thank you.
Can anyone find what the (memory leak) problem is in this code segment:
--------------------------
void
foo1( void )
{
A *a = appArray.iterate( 0 );
B *b;
b = new B;
...
b = foo2( a->id );
...
delete b;
}
Note that foo2 returns B*
---------------------------
Thank you.