| Index: ios/web/web_state/ui/crw_web_controller_container_view.mm
|
| diff --git a/ios/web/web_state/ui/crw_web_controller_container_view.mm b/ios/web/web_state/ui/crw_web_controller_container_view.mm
|
| index 9da506a4acd9ca6e1e4ec820d28c7de1e7da0b2c..ffa55714135b4663110bc82e68f0de2ec510ba8b 100644
|
| --- a/ios/web/web_state/ui/crw_web_controller_container_view.mm
|
| +++ b/ios/web/web_state/ui/crw_web_controller_container_view.mm
|
| @@ -117,7 +117,7 @@
|
| - (void)setToolbarContainerView:(CRWToolbarContainerView*)toolbarContainerView {
|
| if (![_toolbarContainerView isEqual:toolbarContainerView]) {
|
| [_toolbarContainerView removeFromSuperview];
|
| - _toolbarContainerView.reset(toolbarContainerView);
|
| + _toolbarContainerView.reset([toolbarContainerView retain]);
|
| [self addSubview:_toolbarContainerView];
|
| }
|
| }
|
| @@ -147,8 +147,8 @@
|
| - (void)addToolbar:(UIView*)toolbar {
|
| // Create toolbar container if necessary.
|
| if (!self.toolbarContainerView) {
|
| - self.toolbarContainerView =
|
| - [[CRWToolbarContainerView alloc] initWithFrame:CGRectZero];
|
| + self.toolbarContainerView = [
|
| + [[CRWToolbarContainerView alloc] initWithFrame:CGRectZero] autorelease];
|
| }
|
| // Add the toolbar to the container.
|
| [self.toolbarContainerView addToolbar:toolbar];
|
|
|