Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed leaking webView in GenerateThumbnailForURL.m.

  • Loading branch information...
commit be980008b885297e9d4d0a6eee034b1abaa10deb 1 parent 9aae932
@rchowe rchowe authored committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  GenerateThumbnailForURL.m
View
2  GenerateThumbnailForURL.m
@@ -29,7 +29,7 @@ OSStatus GenerateThumbnailForURL(void *thisInterface,
NSMakeSize((maxSize.width * (600.0/800.0)),
maxSize.height));
- WebView* webView = [[WebView alloc] initWithFrame: viewRect];
+ WebView* webView = [[[WebView alloc] initWithFrame: viewRect] autorelease];
[webView scaleUnitSquareToSize: scaleSize];
[[[webView mainFrame] frameView] setAllowsScrolling:NO];
[[webView mainFrame] loadData: data

0 comments on commit be98000

Please sign in to comment.
Something went wrong with that request. Please try again.