[Mac] Address some clang static analyzer warnings in WebKit
authorjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Sep 2016 07:18:48 +0000 (07:18 +0000)
committerjoepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Sep 2016 07:18:48 +0000 (07:18 +0000)
commit04d0537b1caa9d849f191164616da72dc7a02c99
treef2f577d1856002d2608dbb1dcdcd4cadb883342d
parent0c833de244a060b8cc5bfd35156cb8cc2af38ec1
[Mac] Address some clang static analyzer warnings in WebKit
https://bugs.webkit.org/show_bug.cgi?id=161597

Reviewed by Darin Adler.

Source/WebKit/mac:

* Misc/WebIconDatabase.h:
Remove unused instance variable. It has not been used since r16005 (2006)!

* Misc/WebSharingServicePickerController.mm:
(-[WebSharingServicePickerController sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
Address array leak.

* WebCoreSupport/WebSelectionServiceController.mm:
(WebSelectionServiceController::hasRelevantSelectionServices):
Address attachment and cell leak.

* WebView/WebFullScreenController.h:
* WebView/WebImmediateActionController.h:
Remove unused instance variables.

Source/WebKit2:

* UIProcess/Cocoa/WebVideoFullscreenManagerProxy.mm:
(-[WKLayerHostView makeBackingLayer]):
* UIProcess/mac/WKSharingServicePickerDelegate.mm:
(-[WKSharingServicePickerDelegate sharingServicePicker:sharingServicesForItems:mask:proposedSharingServices:]):
* WebProcess/InjectedBundle/API/mac/WKDOMRange.mm:
(-[WKDOMRange rangeByExpandingToWordBoundaryByCharacters:inDirection:]):
Address leaks caught by the static analyzer.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/Misc/WebIconDatabase.h
Source/WebKit/mac/Misc/WebSharingServicePickerController.mm
Source/WebKit/mac/WebCoreSupport/WebSelectionServiceController.mm
Source/WebKit/mac/WebView/WebFullScreenController.h
Source/WebKit/mac/WebView/WebImmediateActionController.h
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/Cocoa/WebVideoFullscreenManagerProxy.mm
Source/WebKit2/UIProcess/mac/WKSharingServicePickerDelegate.mm
Source/WebKit2/WebProcess/InjectedBundle/API/mac/WKDOMRange.mm