discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory leak in cancelPreviousPerformRequestsWithTarget:


From: Andreas Hoeschler
Subject: Re: Memory leak in cancelPreviousPerformRequestsWithTarget:
Date: Fri, 31 Jan 2003 19:46:57 +0100

Dear Richard,

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.

Thanks a lot. I did

cvs -z3 -d :pserver:anoncvs@cvs.gnustep.org:/cvsroot/gnustep update -Pd core

and tried to rebuild base which failed with the following error.

Linking library libgnustep-base ...
make[1]: Leaving directory `/usr/share/src/core/base/Source'
Making all in SSL...
make[1]: Entering directory `/usr/share/src/core/base/SSL'
Making all for bundle SSL...
/opt/GNUstep/System/Makefiles/mkinstalldirs sparc/solaris2.8
mv config.h sparc/solaris2.8
touch sparc/solaris2.8/config.h
Compiling file GSSSLHandle.m ...
Linking bundle SSL ...
make[1]: Leaving directory `/usr/share/src/core/base/SSL'
Making all in Tools...
make[1]: Entering directory `/usr/share/src/core/base/Tools'
GNUmakefile:47: *** missing separator. Stop.
make[1]: Leaving directory `/usr/share/src/core/base/Tools'
make: *** [internal-all] Error 2
bash-2.03#


I remember to have already seen this error months ago but can't remember the solution. If I am not mistaken this had been fixed by another fix in the source tree by someone. Any ideas?

Regards,

Andreas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]