IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 21 years ago

#384 closed defect (fixed)

psFree callback should be called even if reference counter is > 1

Reported by: rhl@… Owned by: robert.desonia@…
Priority: high Milestone:
Component: sys Version: 0.5.0
Severity: normal Keywords:
Cc:

Description

When I register a callback to see a given memory block freed, the current implementation of
psFree only calls my callback when the reference counter is equal to 1.

This callback is primarily used when a block is being erroneously freed twice, so the user
wants to be be notified of _all_ calls. Even in the absence of such errors, I believe that
a call to psFree should always result in the psFree callback being invoked.

Change History (1)

comment:1 by robert.desonia@…, 21 years ago

Resolution: fixed
Status: newclosed

change checked into CVS. The callback is now always called on a decrement of
reference, i.e., a psFree.

Note: See TracTickets for help on using tickets.