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 (For the qcc command, use the -l PushService option to link against this library)

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: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus