mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-04 22:00:50 +00:00
Implemented tracking all allocated instances of a class for debugging
purposes git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9628 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c1bafe11b6
commit
553e1540b5
1 changed files with 20 additions and 0 deletions
20
ChangeLog
20
ChangeLog
|
@ -1,3 +1,23 @@
|
|||
2001-04-19 Nicola Pero <nicola@brainstorm.co.uk>
|
||||
|
||||
To help with debugging memory leaks, you can now ask to the
|
||||
library to track all allocated instances of a certain class.
|
||||
* Source/NSDebug.m (table_entry): Added fields to allow recording
|
||||
the list of allocated instances if required.
|
||||
(GSDebugAllocationActiveRecordingObjects): New function.
|
||||
(GSDebugAllocationAdd): Modified to take an additional argument -
|
||||
the object being allocated -, and to record it in the list of
|
||||
instances for the class if recording instances of that class has
|
||||
been activated.
|
||||
(GSDebugAllocationRemote): Add a similar additional argument;
|
||||
remove the object from the list of instances if recording
|
||||
instances is activated.
|
||||
(GSDebugAllocationListRecordedObjects): New function.
|
||||
* Source/NSObject.m: Updated all occurrences of
|
||||
GSDebugAllocationAdd and GSDebugAllocationRemove to pass the
|
||||
allocated/removed object as well.
|
||||
* Headers/gnustep/base/NSDebug.h: Updated.
|
||||
|
||||
2001-04-19 Nicola Pero <nicola@brainstorm.co.uk>
|
||||
|
||||
* Source/GSTcpPort.m ([GSTcpPort -dealloc]): Fixed memory leak:
|
||||
|
|
Loading…
Reference in a new issue