Unregister notification observer registered in r170156.
authorroger_fong@apple.com <roger_fong@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Jun 2014 19:35:54 +0000 (19:35 +0000)
committerroger_fong@apple.com <roger_fong@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 23 Jun 2014 19:35:54 +0000 (19:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=134204.

Reviewed by Tim Horton.

* UIProcess/API/mac/WKView.mm:
(-[WKView dealloc]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170311 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/mac/WKView.mm

index 497ccf6..3458ea1 100644 (file)
@@ -1,3 +1,13 @@
+2014-06-23  Roger Fong  <roger_fong@apple.com>
+
+        Unregister notification observer registered in r170156.
+        https://bugs.webkit.org/show_bug.cgi?id=134204.
+
+        Reviewed by Tim Horton.
+
+        * UIProcess/API/mac/WKView.mm:
+        (-[WKView dealloc]):
+
 2014-06-23  Dan Bernstein  <mitz@apple.com>
 
         [Cocoa] No way to grant storage quotas for WebSQL
index 2833cf0..1641c0e 100644 (file)
@@ -302,6 +302,8 @@ struct WKViewInterpretKeyEventsParameters {
     NSNotificationCenter* workspaceNotificationCenter = [[NSWorkspace sharedWorkspace] notificationCenter];
     [workspaceNotificationCenter removeObserver:self name:NSWorkspaceActiveSpaceDidChangeNotification object:nil];
 
+    [[NSNotificationCenter defaultCenter] removeObserver:self name:NSApplicationWillTerminateNotification object:NSApp];
+
     WebContext::statistics().wkViewCount--;
 
     [super dealloc];