mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 03:11:18 +00:00
Applied memory leak fixing patches
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17277 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5d38cbe75d
commit
9bb801ddb2
10 changed files with 53 additions and 16 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2003-07-21 Andrew Ruder <aeruder@ksu.edu>
|
||||
|
||||
* Source/GSMemoryPanel.m: Add dealloc method
|
||||
* Source/NSOutlineView.m: Efficiency tweak.
|
||||
* Headers/AppKit/NSComboBoxCell.h:Fix misplaced semicolon
|
||||
* Source/NSSelection.m: Fix memory leak
|
||||
* Source/NSComboBoxCell.m: Fix misplaced semicolon.
|
||||
* Source/NSPageLayout.m: Fix memory leak.
|
||||
* Source/NSMenuView.m: Fix memory leak.
|
||||
* Source/NSToolbar.m: Fix memory leak and tidy
|
||||
* Source/GSServicesManager.m: Clarify retain/release of timer.
|
||||
|
||||
2003-07-21 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSFileWrapper.m: Tidy initialisation and fix leak in
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
float _itemHeight;
|
||||
int _selectedItem;
|
||||
|
||||
@private;
|
||||
@private
|
||||
id _popup;
|
||||
}
|
||||
|
||||
|
|
|
@ -277,6 +277,17 @@ static GSMemoryPanel *sharedGSMemoryPanel = nil;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(table);
|
||||
RELEASE(classArray);
|
||||
RELEASE(countArray);
|
||||
RELEASE(totalArray);
|
||||
RELEASE(peakArray);
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (int) numberOfRowsInTableView: (NSTableView *)aTableView
|
||||
{
|
||||
return [countArray count];
|
||||
|
|
|
@ -440,11 +440,11 @@ static NSString *disabledName = @".GNUstepDisabled";
|
|||
* Check for changes to the services cache every thirty seconds.
|
||||
*/
|
||||
manager->_timer =
|
||||
[NSTimer scheduledTimerWithTimeInterval: 30.0
|
||||
RETAIN([NSTimer scheduledTimerWithTimeInterval: 30.0
|
||||
target: manager
|
||||
selector: @selector(loadServices)
|
||||
userInfo: nil
|
||||
repeats: YES];
|
||||
repeats: YES]);
|
||||
|
||||
[manager loadServices];
|
||||
return manager;
|
||||
|
@ -522,6 +522,7 @@ static NSString *disabledName = @".GNUstepDisabled";
|
|||
|
||||
appName = [[NSProcessInfo processInfo] processName];
|
||||
[_timer invalidate];
|
||||
RELEASE(_timer);
|
||||
NSUnregisterServicesProvider(appName);
|
||||
RELEASE(_languages);
|
||||
RELEASE(_returnInfo);
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
{
|
||||
NSBrowser *browser;
|
||||
|
||||
@private;
|
||||
@private
|
||||
NSComboBoxCell *_cell;
|
||||
BOOL _stopped;
|
||||
}
|
||||
|
|
|
@ -1410,6 +1410,7 @@ _addLeftBorderOffsetToRect(NSRect aRect)
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE (attr);
|
||||
RELEASE (button);
|
||||
[super dealloc];
|
||||
}
|
||||
|
|
|
@ -129,17 +129,12 @@ static NSImage *unexpandable = nil;
|
|||
_itemDict = NSCreateMapTable(NSObjectMapKeyCallBacks,
|
||||
NSObjectMapValueCallBacks,
|
||||
64);
|
||||
_items = [NSMutableArray array];
|
||||
_expandedItems = [NSMutableArray array];
|
||||
_items = [NSMutableArray new];
|
||||
_expandedItems = [NSMutableArray new];
|
||||
_levelOfItems = NSCreateMapTable(NSObjectMapKeyCallBacks,
|
||||
NSObjectMapValueCallBacks,
|
||||
64);
|
||||
|
||||
|
||||
// Retain items
|
||||
RETAIN(_items);
|
||||
RETAIN(_expandedItems);
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
|
@ -179,6 +179,13 @@ static NSPageLayout *shared_instance;
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE (_accessoryView);
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
//
|
||||
// Running the Panel
|
||||
//
|
||||
|
|
|
@ -176,6 +176,14 @@ typedef enum
|
|||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_descriptionData);
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Describing a Selection
|
||||
//
|
||||
|
|
|
@ -52,11 +52,16 @@ static const int current_version = 1;
|
|||
@end
|
||||
|
||||
@implementation GSToolbarView
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_toolbar);
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
- (void) setToolbar: (NSToolbar *)toolbar
|
||||
{
|
||||
ASSIGN(_toolbar, toolbar);
|
||||
}
|
||||
|
||||
- (NSToolbar *) toolbar
|
||||
{
|
||||
return _toolbar;
|
||||
|
@ -182,6 +187,7 @@ static const int current_version = 1;
|
|||
- (void) dealloc
|
||||
{
|
||||
DESTROY (_identifier);
|
||||
DESTROY (_configurationDictionary);
|
||||
|
||||
if (_delegate != nil)
|
||||
{
|
||||
|
@ -242,10 +248,6 @@ static const int current_version = 1;
|
|||
|
||||
- (void) setConfigurationFromDictionary: (NSDictionary *)configDict
|
||||
{
|
||||
if(!_configurationDictionary)
|
||||
{
|
||||
RELEASE(_configurationDictionary);
|
||||
}
|
||||
ASSIGN(_configurationDictionary, configDict);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue