mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-04-25 05:40: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
22c0c1745d
commit
546ead7ebf
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>
|
2006-10-23 Matt Rice <ratmice@yahoo.com>
|
||||||
|
|
||||||
* EOAccess: Revert previous changes.
|
* EOAccess: Revert previous changes.
|
||||||
|
|
|
@ -105,7 +105,7 @@ static id lastObject;
|
||||||
+ (void)initialize
|
+ (void)initialize
|
||||||
{
|
{
|
||||||
observersMap = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks,
|
observersMap = NSCreateMapTable(NSNonOwnedPointerMapKeyCallBacks,
|
||||||
NSNonOwnedPointerMapValueCallBacks,
|
NSObjectMapValueCallBacks,
|
||||||
32);
|
32);
|
||||||
omniscientObservers = [[GDL2NonRetainingMutableArray alloc] initWithCapacity:32];
|
omniscientObservers = [[GDL2NonRetainingMutableArray alloc] initWithCapacity:32];
|
||||||
lastObject = nil;
|
lastObject = nil;
|
||||||
|
@ -137,6 +137,7 @@ static id lastObject;
|
||||||
of the observer to remove the object before it ceases
|
of the observer to remove the object before it ceases
|
||||||
to exist. */
|
to exist. */
|
||||||
NSMapInsert(observersMap, object, observersArray);
|
NSMapInsert(observersMap, object, observersArray);
|
||||||
|
RELEASE(observersArray);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue