Closed jeffd closed 13 years ago
WebView* webView = [[WebView alloc] initWithFrame:renderRect]; on line 36 is never released or added to the autorelease pool.
Adding [webView release]; after CFRelease(data); on line 66 solves this issue.
https://github.com/planbnet/QuickNFO/blob/master/GenerateThumbnailForURL.m#L36
Thanks for the QL Generator!
Thank you for the bug report - somewhat embarrassing to leave a memory leak in so few lines of code. It's fixed now.
WebView* webView = [[WebView alloc] initWithFrame:renderRect]; on line 36 is never released or added to the autorelease pool.
Adding [webView release]; after CFRelease(data); on line 66 solves this issue.
https://github.com/planbnet/QuickNFO/blob/master/GenerateThumbnailForURL.m#L36
Thanks for the QL Generator!