coding fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5769 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-01-13 23:32:54 +00:00
parent 8e4d92bebf
commit fd582aa69d
2 changed files with 5 additions and 9 deletions

View file

@ -870,9 +870,10 @@ static NSString *NSMenuLocationsKey = @"NSMenuLocations";
NSNotificationCenter *theCenter = [NSNotificationCenter defaultCenter];
NSRect winRect = {{0,0},{20,23}};
menu_title = [[decoder decodeObject] retain];
menu_items = [[decoder decodeObject] retain];
menu_view = [[decoder decodeObject] retain];
[decoder decodeValueOfObjCType: @encode(id) at: &menu_title];
[decoder decodeValueOfObjCType: @encode(id) at: &menu_items];
[decoder decodeValueOfObjCType: @encode(id) at: &menu_view];
[menu_view setMenu: self]; // Sets notifications up
menu_supermenu = [decoder decodeObject];
menu_popb = [decoder decodeObject];
[decoder decodeValueOfObjCType: @encode(BOOL) at: &menu_autoenable];
@ -1490,7 +1491,7 @@ static NSString *NSMenuLocationsKey = @"NSMenuLocations";
- (void) _releaseCloseButton
{
[button retain];
RETAIN(button);
[button removeFromSuperview];
}