From 723b6664521b0d4e4fb77f655b92706f19fc3998 Mon Sep 17 00:00:00 2001 From: Jan Hutter Date: Tue, 22 Nov 2005 11:54:58 +0000 Subject: [PATCH] -destroy function moved in file :-) --- Source/charon/payloads/notify_payload.c | 38 ++++++++++++------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Source/charon/payloads/notify_payload.c b/Source/charon/payloads/notify_payload.c index 1593662a3..4cd6c9e97 100644 --- a/Source/charon/payloads/notify_payload.c +++ b/Source/charon/payloads/notify_payload.c @@ -168,25 +168,6 @@ static status_t verify(private_notify_payload_t *this) return SUCCESS; } -/** - * Implements payload_t's and notify_payload_t's destroy function. - * See #payload_s.destroy or notify_payload_s.destroy for description. - */ -static status_t destroy(private_notify_payload_t *this) -{ - if (this->notification_data.ptr != NULL) - { - allocator_free(this->notification_data.ptr); - } - if (this->spi.ptr != NULL) - { - allocator_free(this->spi.ptr); - } - - allocator_free(this); - return SUCCESS; -} - /** * Implements payload_t's get_encoding_rules function. * See #payload_s.get_encoding_rules for description. @@ -370,6 +351,25 @@ status_t set_notification_data(private_notify_payload_t *this, chunk_t notificat return SUCCESS; } +/** + * Implements payload_t's and notify_payload_t's destroy function. + * See #payload_s.destroy or notify_payload_s.destroy for description. + */ +static status_t destroy(private_notify_payload_t *this) +{ + if (this->notification_data.ptr != NULL) + { + allocator_free(this->notification_data.ptr); + } + if (this->spi.ptr != NULL) + { + allocator_free(this->spi.ptr); + } + + allocator_free(this); + return SUCCESS; +} + /* * Described in header */