mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Clean up something I did for ABI compatability in 1.4
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -139,8 +139,7 @@ static void destroy(struct ast_trans_pvt *pvt)
|
||||
* When ast_frfree() gets called on that frame, this ast_trans_pvt
|
||||
* will get destroyed, too. */
|
||||
|
||||
/* Set the magic hint that this has been requested to be destroyed. */
|
||||
pvt->datalen = -1;
|
||||
pvt->destroy = 1;
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -898,7 +897,7 @@ void ast_translate_frame_freed(struct ast_frame *fr)
|
||||
|
||||
pvt = (struct ast_trans_pvt *) (((char *) fr) - offsetof(struct ast_trans_pvt, f));
|
||||
|
||||
if (pvt->datalen != -1)
|
||||
if (!pvt->destroy)
|
||||
return;
|
||||
|
||||
destroy(pvt);
|
||||
|
Reference in New Issue
Block a user