Permalink
Browse files

Fix a leak in UIWebView+Spec spec

  • Loading branch information...
1 parent d6ba6a9 commit 4904071c29a2d8f640293afd75301608f32c534e Andrew Kitchen committed Apr 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Spec/UI/Extensions/UIWebViewSpec+Spec.mm
View
2 Spec/UI/Extensions/UIWebViewSpec+Spec.mm
@@ -330,7 +330,7 @@ inline BeLoading be_loading() {
describe(@"when loaded from a XIB", ^{
beforeEach(^{
- AWebViewController *controller = [[AWebViewController alloc] initWithNibName:@"AWebViewController" bundle:nil];
+ AWebViewController *controller = [[[AWebViewController alloc] initWithNibName:@"AWebViewController" bundle:nil] autorelease];
// Load the view.
expect(controller.view).to_not(be_nil());
webView = controller.webView;

0 comments on commit 4904071

Please sign in to comment.