mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Tidyup for GC
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4956 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
65b8d0067c
commit
eb1c061d9b
30 changed files with 137 additions and 111 deletions
|
@ -99,10 +99,7 @@ NSString *NSUndoManagerWillUndoChangeNotification =
|
|||
|
||||
- (void) orphan
|
||||
{
|
||||
id p = parent;
|
||||
|
||||
parent = nil;
|
||||
RELEASE(p);
|
||||
DESTROY(parent);
|
||||
}
|
||||
|
||||
- (PrivateUndoGroup*) parent
|
||||
|
@ -427,7 +424,7 @@ NSString *NSUndoManagerWillUndoChangeNotification =
|
|||
postNotificationName: NSUndoManagerWillRedoChangeNotification
|
||||
object: self];
|
||||
groupToRedo = [_redoStack objectAtIndex: [_redoStack count] - 1];
|
||||
RETAIN(groupToRedo);
|
||||
IF_NO_GC([groupToRedo retain]);
|
||||
[_redoStack removeObjectAtIndex: [_redoStack count] - 1];
|
||||
oldGroup = _group;
|
||||
_group = nil;
|
||||
|
@ -684,7 +681,7 @@ NSString *NSUndoManagerWillUndoChangeNotification =
|
|||
else
|
||||
{
|
||||
groupToUndo = [_undoStack objectAtIndex: [_undoStack count] - 1];
|
||||
RETAIN(groupToUndo);
|
||||
IF_NO_GC([groupToUndo retain]);
|
||||
[_undoStack removeObjectAtIndex: [_undoStack count] - 1];
|
||||
}
|
||||
[self beginUndoGrouping];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue