|
From: Alison Z. <ali...@au...> - 2004-03-24 01:54:34
|
It is related to the previous error which is:
==1821== Mismatched free() / delete / delete []
==1821== at 0x4002BEE7: __builtin_delete (vg_replace_malloc.c:244)
==1821== by 0x81509B6: CimGraphixLineSet::~CimGraphixLineSet(void)
(CimModel/CimGraphix/CimGraphixLineSet.C:263)
this code is:
int pl;
for (pl=0;pl<np;pl++)
{
delete pts[pl];
}
delete pts; //in destructor
code in constructor: float **pts; pts = new float*[np];
I quess the way i delete arrays is not correct, i am java programmer.
Please give me some hint how to delete various kinds of arrays in c.
Thanks very much,
Alison
|