mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 02:10:37 +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
|
@ -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…
Add table
Add a link
Reference in a new issue