mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 13:20:47 +00:00
Memory leak fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17295 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b04ce4006b
commit
fe15f366b4
4 changed files with 23 additions and 3 deletions
|
@ -1,6 +1,9 @@
|
|||
2003-07-22 Andrew Ruder <aeruder@ksu.edu>
|
||||
|
||||
* Source/NSWindow.m: Fix potential (unlikely) leak
|
||||
* Source/NSCursor.m: Fix memory leak;
|
||||
* Source/NSResponder.m: Fix memory leak;
|
||||
* Source/NSPrintPanel.m: Fix memory leak;
|
||||
|
||||
2003-07-21 Kazunobu Kuriyama <kazunobu.kuriyama@nifty.com>
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ static NSMutableDictionary *cursorDict = nil;
|
|||
NSCursor_class = self;
|
||||
gnustep_gui_cursor_stack = [[NSMutableArray alloc] initWithCapacity: 2];
|
||||
gnustep_gui_hidden_until_move = YES;
|
||||
cursorDict = RETAIN([NSMutableDictionary dictionary]);
|
||||
cursorDict = [NSMutableDictionary new];
|
||||
[[self arrowCursor] push];
|
||||
}
|
||||
}
|
||||
|
@ -248,7 +248,11 @@ backgroundColorHint:(NSColor *)bg
|
|||
}
|
||||
return cursor;
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
RELEASE (_cursor_image);
|
||||
[super dealloc];
|
||||
}
|
||||
/*
|
||||
* Defining the Cursor
|
||||
*/
|
||||
|
|
|
@ -157,6 +157,15 @@ static NSPrintPanel *shared_instance;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_accessoryView);
|
||||
RELEASE(_savePath);
|
||||
RELEASE(_optionPanel);
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
//
|
||||
// Customizing the Panel
|
||||
//
|
||||
|
|
|
@ -332,7 +332,11 @@
|
|||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_menu);
|
||||
[super dealloc];
|
||||
}
|
||||
- (NSMenu*) menu
|
||||
{
|
||||
return _menu;
|
||||
|
|
Loading…
Reference in a new issue