Hi all,
I have a structure like this..
Struct p
{
int a;
String x;
String y;
};
now,
String is a class.
if i do this..
while()
{
...
.....
Struct p *ptr;
ptr = new ptr;
}
and lets say the loop executes 'n' number of times..
then 'n' number of times delete ptr is executed..
but this is Showing a leak in the String class..
my question whether 'delete' will destroy the string object?
thnx in advance..
xoinki