reset _selected to nil at top of dealloc

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@35767 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2012-10-30 20:10:12 +00:00
parent 68f35290c3
commit cdf826a4d0

View file

@ -86,11 +86,11 @@
- (void) dealloc
{
RELEASE(_items);
RELEASE(_font);
// Reset the _selected attribute to prevent crash when -dealloc calls
// -setNextKeyView:
_selected = nil;
RELEASE(_items);
RELEASE(_font);
[super dealloc];
}