Mercurial > almixer_isolated
comparison ALmixer.c @ 33:28cf14726606
Fixed infinite loop bug for delete.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Fri, 01 Apr 2011 17:39:32 -0700 |
parents | 71fce7ac6e13 |
children | 7709c2145435 |
comparison
equal
deleted
inserted
replaced
32:71fce7ac6e13 | 33:28cf14726606 |
---|---|
7514 * its own underlying information and I potentially have dangling pointers. | 7514 * its own underlying information and I potentially have dangling pointers. |
7515 */ | 7515 */ |
7516 while(LinkedList_Size(s_listOfALmixerData) > 0) | 7516 while(LinkedList_Size(s_listOfALmixerData) > 0) |
7517 { | 7517 { |
7518 /* Note that ALmixer_FreeData will remove the data from the linked list for us so don't pop the list here. */ | 7518 /* Note that ALmixer_FreeData will remove the data from the linked list for us so don't pop the list here. */ |
7519 ALmixer_Data* almixer_data = LinkedList_Back(s_listOfALmixerData); | 7519 ALmixer_Data* almixer_data = LinkedList_PopBack(s_listOfALmixerData); |
7520 ALmixer_FreeData(almixer_data); | 7520 ALmixer_FreeData(almixer_data); |
7521 } | 7521 } |
7522 LinkedList_Free(s_listOfALmixerData); | 7522 LinkedList_Free(s_listOfALmixerData); |
7523 s_listOfALmixerData = NULL; | 7523 s_listOfALmixerData = NULL; |
7524 | 7524 |