The deallocate() function
Deallocates the specified amount of memory, which must have been previously allocated by allocate().
Syntax
The function has the
following syntax:
virtual void deallocate(void *ptr)Description
The function deallocates memory from the SPUPad, returning the memory to the heap specific to the SPUPad type (file-backed or shared memory). Instead of using the deallocate() function to free memory, review the PAD_DELETE macro, which can help you to free the memory and also manage destructors for you. Use the deallocate() function if you are using C-style code and want to replace calls to free instead of calls to delete or delete[].
Throws
The function throws an exception if the specified object was not allocated by the pad that uses allocate().