mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
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:
parent
4c1d85f545
commit
88257ba990
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue