mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Corrected segfault. Wasn't retaining the savedColor.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@19477 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
da69e277a7
commit
bf5616de62
2 changed files with 15 additions and 3 deletions
|
@ -252,11 +252,17 @@ static id _sharedDataSource = nil;
|
|||
_gormAllowsEmptySelection = _allowsEmptySelection;
|
||||
_gormDelegate = _delegate;
|
||||
_delegate = nil;
|
||||
_savedColor = [self backgroundColor];
|
||||
ASSIGN(_savedColor, [self backgroundColor]);
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_savedColor);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) setGormAllowsColumnReordering: (BOOL)flag
|
||||
{
|
||||
_gormAllowsColumnReordering = flag;
|
||||
|
|
|
@ -161,11 +161,17 @@ static id _sharedDataSource = nil;
|
|||
_gormAllowsEmptySelection = _allowsEmptySelection;
|
||||
_gormDelegate = _delegate;
|
||||
_delegate = nil;
|
||||
_savedColor = [self backgroundColor];
|
||||
|
||||
ASSIGN(_savedColor, [self backgroundColor]);
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_savedColor);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) setGormAllowsColumnReordering: (BOOL)flag
|
||||
{
|
||||
_gormAllowsColumnReordering = flag;
|
||||
|
|
Loading…
Reference in a new issue