|
|
@ -163,19 +163,17 @@ void ast_frame_free(struct ast_frame *frame, int cache)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct ast_frame *next;
|
|
|
|
struct ast_frame *next;
|
|
|
|
|
|
|
|
|
|
|
|
for (next = AST_LIST_NEXT(frame, frame_list);
|
|
|
|
while (frame) {
|
|
|
|
frame;
|
|
|
|
next = AST_LIST_NEXT(frame, frame_list);
|
|
|
|
frame = next, next = frame ? AST_LIST_NEXT(frame, frame_list) : NULL) {
|
|
|
|
|
|
|
|
__frame_free(frame, cache);
|
|
|
|
__frame_free(frame, cache);
|
|
|
|
|
|
|
|
frame = next;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ast_frame_dtor(struct ast_frame *f)
|
|
|
|
void ast_frame_dtor(struct ast_frame *f)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (f) {
|
|
|
|
|
|
|
|
ast_frfree(f);
|
|
|
|
ast_frfree(f);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
/*!
|
|
|
|
* \brief 'isolates' a frame by duplicating non-malloc'ed components
|
|
|
|
* \brief 'isolates' a frame by duplicating non-malloc'ed components
|
|
|
|