[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Memory leak in cancelPreviousPerformRequestsWithTarget:
From: |
Richard Frith-Macdonald |
Subject: |
Re: Memory leak in cancelPreviousPerformRequestsWithTarget: |
Date: |
Fri, 31 Jan 2003 18:29:11 +0000 |
On Friday, January 31, 2003, at 05:29 pm, Andreas Hoeschler wrote:
Hi all,
on MacOS X the following code retains and releases someObject.
[someObject performSelector:@selector(autoRollback)
withObject:nil afterDelay:0];
[NSObject cancelPreviousPerformRequestsWithTarget:someObject
selector:@selector(autoRollback) object:nil];
When I do this on GNUstep, the first line retains someObject, but the
second line does not release it. This causes a memory leak in my app.
Is this a bug or a feature?
Bug now fixed in CVS I hope.