avoid duplicate calls to finalize

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28639 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-09-08 20:51:18 +00:00
parent b3bb5d96da
commit d4dafeef76
2 changed files with 4 additions and 12 deletions

View file

@ -8,6 +8,10 @@
* Source/NSThread.m: * Source/NSThread.m:
Fix various bugs related to thread exit, Prevent crashes at program Fix various bugs related to thread exit, Prevent crashes at program
termination ...nastily obvious on mingw. termination ...nastily obvious on mingw.
* Source/Additions/GSLock.m:
Remove -dealloc implementations which called -finalize, since the
superclass implementationd does that too, and finalizing twice is
a bad, bad thing.
2009-09-07 Richard Frith-Macdonald <rfm@gnu.org> 2009-09-07 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -73,12 +73,6 @@
locked = -1; locked = -1;
} }
- (void) dealloc
{
[self finalize];
[super dealloc];
}
- (void) finalize - (void) finalize
{ {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];
@ -224,12 +218,6 @@
counter = -1; counter = -1;
} }
- (void) dealloc
{
[self finalize];
[super dealloc];
}
- (void) finalize - (void) finalize
{ {
[[NSNotificationCenter defaultCenter] removeObserver: self]; [[NSNotificationCenter defaultCenter] removeObserver: self];