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:
Richard Frith-Macdonald 2003-07-21 10:41:10 +00:00
parent 5d38cbe75d
commit 9bb801ddb2
10 changed files with 53 additions and 16 deletions

View file

@ -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);
}