Fixed broken multiallocation_chain due to container library changes

[SVN r80688]
This commit is contained in:
Ion Gaztañaga
2012-09-24 10:41:48 +00:00
parent 6a0d33c5d5
commit a46700c3dd
6 changed files with 53 additions and 26 deletions

View File

@@ -64,8 +64,7 @@ int main()
//Initialize our data
while(!chain.empty()){
void *buf = chain.front();
chain.pop_front();
void *buf = chain.pop_front();
allocated_buffers.push_back(buf);
//The iterator must be incremented before overwriting memory
//because otherwise, the iterator is invalidated.