push_payload_destroy()

Deallocate the memory used by a push_payload_t structure.

Synopsis:

#include <bbpush/push_payload.h>
 
int push_payload_destroy(push_payload_t *push_payload)

Since:

BlackBerry 10.2.0

Arguments:

push_payload

The push_payload_t structure to deallocate.

Library:

libPushService

Description:

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.

Returns:

PUSH_SUCCESS upon success, PUSH_FAILURE with errno set otherwise.

Last modified: 2013-12-21

comments powered by Disqus