Fix memory allocation accounting error with isa swizzling

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22973 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-05-23 09:22:53 +00:00
parent 4c1d85f545
commit 88257ba990

View file

@ -2839,7 +2839,13 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
{
if (shouldFree == NO)
{
#ifndef NDEBUG
GSDebugAllocationRemove(self->isa, self);
#endif
self->isa = dataStatic;
#ifndef NDEBUG
GSDebugAllocationAdd(self->isa, self);
#endif
}
bytes = aBuffer;
length = bufferSize;