mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-04 03:20:33 +00:00
chan_sip.c: Simplify sip_pvt destructor call levels.
Remove destructor calling destroy_it calling really_destroy_it for no benefit. Just make the destructor the really_destroy_it function. Change-Id: Idea0d47b27dd74f2488db75bcc7f353d8fdc614a
This commit is contained in:
@@ -43,19 +43,6 @@ void sip_scheddestroy_final(struct sip_pvt *p, int ms);
|
||||
void sip_scheddestroy(struct sip_pvt *p, int ms);
|
||||
int sip_cancel_destroy(struct sip_pvt *p);
|
||||
|
||||
/*! \brief Destroy SIP call structure.
|
||||
* Make it return NULL so the caller can do things like
|
||||
* foo = sip_destroy(foo);
|
||||
* and reduce the chance of bugs due to dangling pointers.
|
||||
*/
|
||||
struct sip_pvt *sip_destroy(struct sip_pvt *p);
|
||||
|
||||
/*! \brief Destroy SIP call structure.
|
||||
* Make it return NULL so the caller can do things like
|
||||
* foo = sip_destroy(foo);
|
||||
* and reduce the chance of bugs due to dangling pointers.
|
||||
*/
|
||||
void __sip_destroy(struct sip_pvt *p, int lockowner, int lockdialoglist);
|
||||
/*!
|
||||
* \brief Unlink a dialog from the dialogs container, as well as any other places
|
||||
* that it may be currently stored.
|
||||
|
Reference in New Issue
Block a user