mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
988f583f7d
commit
43ad91f79e
2 changed files with 12 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue