Mercurial > mm7
comparison Allocator.cpp @ 702:efde64b3e147
sub_4BDAAF clean
some Chest pointer fixes
author | zipi |
---|---|
date | Mon, 18 Mar 2013 20:19:20 +0000 |
parents | 2dfb67633b01 |
children | e39702f35283 |
comparison
equal
deleted
inserted
replaced
701:d5b16a44d9b3 | 702:efde64b3e147 |
---|---|
199 if ((!bBigBufferAllocated)&& (!aborting_app )) | 199 if ((!bBigBufferAllocated)&& (!aborting_app )) |
200 AbortWithError(); | 200 AbortWithError(); |
201 for (indx = 0; indx <=uNumBuffersUsed; ++indx) | 201 for (indx = 0; indx <=uNumBuffersUsed; ++indx) |
202 if (pMemoryBuffers[indx] == ptr) | 202 if (pMemoryBuffers[indx] == ptr) |
203 break; | 203 break; |
204 if ((indx>uNumBuffersUsed)&& !aborting_app ) | 204 //if ((indx>uNumBuffersUsed)&& !aborting_app ) |
205 AbortWithError(); //to detect memory problems - uncomment | 205 //AbortWithError(); //to detect memory problems - uncomment |
206 if (!bUseBigBuffer) | 206 if (!bUseBigBuffer) |
207 free(pMemoryBuffers[indx]); | 207 free(pMemoryBuffers[indx]); |
208 pMemoryBuffers[indx] = NULL; | 208 pMemoryBuffers[indx] = NULL; |
209 uMemoryBuffersSizes[indx] = 0; | 209 uMemoryBuffersSizes[indx] = 0; |
210 pMemoryBuffersNames[indx][0] = 0; | 210 pMemoryBuffersNames[indx][0] = 0; |