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:
Joshua Colp
2007-07-11 17:34:30 +00:00
parent 2d3f9ce25b
commit 7e015109a2
3 changed files with 4 additions and 7 deletions

View File

@@ -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;
}