Hi
I have a pointer generated in a method.
And this pointer is input to another object.
So at what point I have to delete this pointer?
method()
{
TEnemyCharacter *tenemyCharacter = new TEnemyCharacter(this);
}
So how to delete this tenemyCharacter.
I cannot use delete tenemyCharacter; at the method end.
And I cannot declare this in header
Thanx in advance