Fix bug in timer invalidation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27564 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-01-09 09:23:40 +00:00
parent 988f583f7d
commit 43ad91f79e
2 changed files with 12 additions and 8 deletions

View file

@ -1,3 +1,7 @@
2009-01-09 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSTimer.m: ([invalidate]) release target and user info.
2009-01-07 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSBundle.m: Revert last change. Remove undocumented code

View file

@ -196,14 +196,6 @@ static Class NSDate_class;
{
[self invalidate];
}
if (_target != nil)
{
DESTROY(_target);
}
if (_info != nil)
{
DESTROY(_info);
}
RELEASE(_date);
[super dealloc];
}
@ -264,6 +256,14 @@ static Class NSDate_class;
/* OPENSTEP allows this method to be called multiple times. */
//NSAssert(_invalidated == NO, NSInternalInconsistencyException);
_invalidated = YES;
if (_target != nil)
{
DESTROY(_target);
}
if (_info != nil)
{
DESTROY(_info);
}
}
/**