Fix uninitialsed varibale reference

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26548 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2008-05-21 09:34:47 +00:00
parent 44c6240b1c
commit 1a8c484d5b
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2008-05-21 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSRunLoop.m: Fix reference to uninitialised variable.
2008-05-14 Richard Frith-Macdonald <rfm@gnu.org> 2008-05-14 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSArray.m: Fix bug allowing nil to be placed in array. * Source/GSArray.m: Fix bug allowing nil to be placed in array.

View file

@ -707,7 +707,7 @@ static inline BOOL timerInvalidated(NSTimer *t)
NSMapInsert(current->_contextMap, context->mode, context); NSMapInsert(current->_contextMap, context->mode, context);
RELEASE(context); RELEASE(context);
} }
if (context->housekeeper != timer) if (context->housekeeper != nil)
{ {
[context->housekeeper invalidate]; [context->housekeeper invalidate];
DESTROY(context->housekeeper); DESTROY(context->housekeeper);