Deallocate the memory used by a push_payload_t structure.
#include <bbpush/push_payload.h>
int push_payload_destroy(push_payload_t *push_payload)
BlackBerry 10.2.0
The push_payload_t structure to deallocate.
The push_payload_destroy() function deallocates any memory set to a given push_payload. Use this function to deallocate memory used by a push_payload_t structure (created by the push_payload_create() function) that's no longer in use. Failing to do so will result in a memory leak.
PUSH_SUCCESS upon success, PUSH_FAILURE with errno set otherwise.