Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: chrome/browser/cocoa/extension_shelf_controller.mm

Issue 267082: Makes it so when NSViewControllers go away that they remove their views from ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/extension_shelf_controller.mm
===================================================================
--- chrome/browser/cocoa/extension_shelf_controller.mm (revision 28822)
+++ chrome/browser/cocoa/extension_shelf_controller.mm (working copy)
@@ -328,6 +328,13 @@
return self;
}
+- (void)dealloc {
+ // Remove our view from its superview so it doesn't attempt to reference
+ // it when the controller is gone.
+ [[self view] removeFromSuperview];
+ [super dealloc];
+}
+
- (void)wasInsertedIntoWindow {
// The bridge_ calls cacheDisplayInRect:toBitmapImageRep:, which requires that
// the view is in a superview to work. Hence, create the bridge object no
Property changes on: chrome/browser/cocoa/extension_shelf_controller.mm
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/cocoa/download_shelf_controller.mm ('k') | chrome/browser/cocoa/find_bar_cocoa_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698