PDA

View Full Version : How can I check that my memory allocation has been freed up?



ssummers
11-02-09, 10:50 AM
How can I check that my memory allocation has been freed up?

This function frees a message previously allocated by PKH_SIP_MESSAGE_Alloc or PKH_SIP_GetMessage.

PK_STATUS PK_API PKH_SIP_MESSAGE_Free(OUT TPikaHandle sipMessageHdl)

The TPikaHandle type defines the handles used to refer to all user-visible Pika objects in the system. All Pika objects, regardless of their type (e.g. isdn group, media stream, conference), are referred to through an abstract handle value, allowing the application to call functions on the object without needing to manage the memory associated with it.
As long as you are freeing the TPikaHandle that we give you, then you are freeing the correct memory allocated.

If you want to double check this you can keep track of the value of TPikaHandle within your application and confirm that you are indeed freeing the same memory location that was allocated.