Re: pfReplaceChild()

New Message Reply Date view Thread view Subject view Author view

Angus Dorbie (angus++at++division.co.uk)
Thu, 18 May 1995 17:25:35 +0100


> When I call pfReplaceChild(), do I need to pfFree() the child
> that was replaced? When I try to do so I get:
>
> Performer Warning: pfFree() pointer 0x19ddd490 not from pfMalloc

I rely on pfDelete() to get rid of my redundant performer nodes.
You must also set any user data at nodes to NULL prior to deleting
the node if you still need the data.
Be aware that pfDelete deletes everything below the deleted node if
it isn't used elsewhere, to avoid this increment their reference
counts.

I've had similar errors to yours in the past but it's generally been
due to my application scribbling memory or similar mistake.

-- 
 Angus Dorbie                Division Ltd,
 Software Engineer           19 Apex Court,
 Tel: (01454)615554          Woodlands,
 Fax: (01454)615532          Bristol BS12 4JT,
 angus++at++division.co.uk        UK

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:30 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.