mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Fix potential crash by calling [super dealloc] _after_ cleaning ourselves up. Found with MallocDebug.
This commit is contained in:
parent
0923d081a1
commit
8c9a99193f
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user