From 2d674b320c3380b7138b848dd7ab283b3d546032 Mon Sep 17 00:00:00 2001 From: Sauw Ming Date: Tue, 29 Jun 2010 13:43:05 +0000 Subject: [PATCH] Ticket #1018: Application may now destroy pj_http_req inside on_complete callback. git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@3227 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib-util/include/pjlib-util/http_client.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pjlib-util/include/pjlib-util/http_client.h b/pjlib-util/include/pjlib-util/http_client.h index bcd6e4250..2259b3f52 100644 --- a/pjlib-util/include/pjlib-util/http_client.h +++ b/pjlib-util/include/pjlib-util/http_client.h @@ -214,6 +214,10 @@ typedef struct pj_http_req_callback * as long as pj_http_req is not destroyed and application does * not start a new request. * + * If no longer required, application may choose to destroy + * pj_http_req immediately by calling #pj_http_req_destroy() inside + * the callback. + * * @param http_req The http request. * @param status The status of the request operation. PJ_SUCCESS * if the operation completed successfully