mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
b3bb5d96da
commit
d4dafeef76
2 changed files with 4 additions and 12 deletions
|
@ -8,6 +8,10 @@
|
|||
* Source/NSThread.m:
|
||||
Fix various bugs related to thread exit, Prevent crashes at program
|
||||
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>
|
||||
|
||||
|
|
|
@ -73,12 +73,6 @@
|
|||
locked = -1;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[self finalize];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) finalize
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
@ -224,12 +218,6 @@
|
|||
counter = -1;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
[self finalize];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void) finalize
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue