diff --git a/ChangeLog b/ChangeLog index 9a29fcafa..5b140ca37 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-05-21 Richard Frith-Macdonald + + * Source/NSRunLoop.m: Fix reference to uninitialised variable. + 2008-05-14 Richard Frith-Macdonald * Source/GSArray.m: Fix bug allowing nil to be placed in array. diff --git a/Source/NSRunLoop.m b/Source/NSRunLoop.m index 60c863703..e806c79f3 100644 --- a/Source/NSRunLoop.m +++ b/Source/NSRunLoop.m @@ -707,7 +707,7 @@ static inline BOOL timerInvalidated(NSTimer *t) NSMapInsert(current->_contextMap, context->mode, context); RELEASE(context); } - if (context->housekeeper != timer) + if (context->housekeeper != nil) { [context->housekeeper invalidate]; DESTROY(context->housekeeper);