Fix potential crash by calling [super dealloc] _after_ cleaning ourselves up. Found with MallocDebug.

This commit is contained in:
sfraser%netscape.com 2002-08-02 22:25:47 +00:00
parent 0923d081a1
commit 8c9a99193f
4 changed files with 8 additions and 8 deletions

View File

@ -733,8 +733,6 @@ nsCocoaBrowserListener::SetContainer(id <NSBrowserContainer> aContainer)
- (void)dealloc
{
[super dealloc];
NS_RELEASE(_listener);
NS_IF_RELEASE(_webBrowser);
@ -743,6 +741,8 @@ nsCocoaBrowserListener::SetContainer(id <NSBrowserContainer> aContainer)
#if DEBUG
NSLog(@"CHBrowserView died.");
#endif
[super dealloc];
}
- (void)setFrame:(NSRect)frameRect

View File

@ -733,8 +733,6 @@ nsCocoaBrowserListener::SetContainer(id <NSBrowserContainer> aContainer)
- (void)dealloc
{
[super dealloc];
NS_RELEASE(_listener);
NS_IF_RELEASE(_webBrowser);
@ -743,6 +741,8 @@ nsCocoaBrowserListener::SetContainer(id <NSBrowserContainer> aContainer)
#if DEBUG
NSLog(@"CHBrowserView died.");
#endif
[super dealloc];
}
- (void)setFrame:(NSRect)frameRect

View File

@ -733,8 +733,6 @@ nsCocoaBrowserListener::SetContainer(id <NSBrowserContainer> aContainer)
- (void)dealloc
{
[super dealloc];
NS_RELEASE(_listener);
NS_IF_RELEASE(_webBrowser);
@ -743,6 +741,8 @@ nsCocoaBrowserListener::SetContainer(id <NSBrowserContainer> aContainer)
#if DEBUG
NSLog(@"CHBrowserView died.");
#endif
[super dealloc];
}
- (void)setFrame:(NSRect)frameRect

View File

@ -733,8 +733,6 @@ nsCocoaBrowserListener::SetContainer(id <NSBrowserContainer> aContainer)
- (void)dealloc
{
[super dealloc];
NS_RELEASE(_listener);
NS_IF_RELEASE(_webBrowser);
@ -743,6 +741,8 @@ nsCocoaBrowserListener::SetContainer(id <NSBrowserContainer> aContainer)
#if DEBUG
NSLog(@"CHBrowserView died.");
#endif
[super dealloc];
}
- (void)setFrame:(NSRect)frameRect