cancelPreviousPerformRequestsWithTarget for -resolveBounds in wrong class.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Jun 2015 17:38:24 +0000 (17:38 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 19 Jun 2015 17:38:24 +0000 (17:38 +0000)
https://bugs.webkit.org/show_bug.cgi?id=146140

Patch by Jeremy Jones <jeremyj@apple.com> on 2015-06-19
Reviewed by Eric Carlson.

* platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
(-[WebCALayerHostWrapper dealloc]): Added.
(-[WebAVVideoLayer dealloc]): Deleted.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

index b4fca89..f41ab38 100644 (file)
@@ -1,3 +1,14 @@
+2015-06-19  Jeremy Jones  <jeremyj@apple.com>
+
+        cancelPreviousPerformRequestsWithTarget for -resolveBounds in wrong class.
+        https://bugs.webkit.org/show_bug.cgi?id=146140
+
+        Reviewed by Eric Carlson.
+
+        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
+        (-[WebCALayerHostWrapper dealloc]): Added.
+        (-[WebAVVideoLayer dealloc]): Deleted.
+
 2015-06-19  Per Arne Vollan  <peavo@outlook.com>
 
         [WinCairo] Null pointer crash in BitmapTexture::updateContents.
index 71842b4..7960d5f 100644 (file)
@@ -569,6 +569,12 @@ static const char* boolString(bool val)
     RetainPtr<CALayer> _videoSublayer;
 }
 
+- (void)dealloc
+{
+    [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(resolveBounds) object:nil];
+    [super dealloc];
+}
+
 - (void)setVideoSublayer:(CALayer*)videoSublayer
 {
     _videoSublayer = videoSublayer;
@@ -661,12 +667,6 @@ static const char* boolString(bool val)
     return self;
 }
 
-- (void)dealloc
-{
-    [NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(resolveBounds) object:nil];
-    [super dealloc];
-}
-
 - (void)setPlayerController:(AVPlayerController *)playerController
 {
     ASSERT(!playerController || [playerController isKindOfClass:[WebAVPlayerController class]]);