mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-02-21 02:20:55 +00:00
* EOControl/EOObserver.m: Fix leak when removing observers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@24105 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a34631c202
commit
e4e04424f2
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2006-11-15 Matt Rice <ratmice@gmail.com>
|
||||
|
||||
* EOControl/EOObserver.m: Fix leak when removing observers.
|
||||
|
||||
2006-10-23 Matt Rice <ratmice@yahoo.com>
|
||||
|
||||
* EOAccess: Revert previous changes.
|
||||
|
|
|
@ -105,7 +105,7 @@ static id lastObject;
|
|||
+ (void)initialize
|
||||
{
|
||||
observersMap = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks,
|
||||
NSNonOwnedPointerMapValueCallBacks,
|
||||
NSObjectMapValueCallBacks,
|
||||
32);
|
||||
omniscientObservers = [[GDL2NonRetainingMutableArray alloc] initWithCapacity:32];
|
||||
lastObject = nil;
|
||||
|
@ -137,6 +137,7 @@ static id lastObject;
|
|||
of the observer to remove the object before it ceases
|
||||
to exist. */
|
||||
NSMapInsert(observersMap, object, observersArray);
|
||||
RELEASE(observersArray);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue