mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Use the linkedlists.h AST_LIST_NEXT macro for modifying the list of results.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74616 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -113,7 +113,7 @@ int ast_speech_results_free(struct ast_speech_result *result)
|
||||
current_result->grammar = NULL;
|
||||
}
|
||||
/* Move on and then free ourselves */
|
||||
current_result = current_result->next;
|
||||
current_result = AST_LIST_NEXT(current_result, list);
|
||||
ast_free(prev_result);
|
||||
prev_result = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user