Changeset 167551 in webkit


Ignore:
Timestamp:
Apr 19, 2014 3:12:41 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Fix AVPlayerController leak on pages with video
https://bugs.webkit.org/show_bug.cgi?id=131878

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2014-04-19
Reviewed by Eric Carlson.

  • platform/ios/WebVideoFullscreenInterfaceAVKit.mm:

(-[WebAVPlayerController init]):
Assigning to the retain property will increment the count,
so balance the alloc with an autorelease.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r167545 r167551  
     12014-04-19  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Fix AVPlayerController leak on pages with video
     4        https://bugs.webkit.org/show_bug.cgi?id=131878
     5
     6        Reviewed by Eric Carlson.
     7
     8        * platform/ios/WebVideoFullscreenInterfaceAVKit.mm:
     9        (-[WebAVPlayerController init]):
     10        Assigning to the retain property will increment the count,
     11        so balance the alloc with an autorelease.
     12
    1132014-04-19  Andreas Kling  <akling@apple.com>
    214
  • trunk/Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm

    r167153 r167551  
    122122   
    123123    initAVPlayerController();
    124     self.playerControllerProxy = [[classAVPlayerController alloc] init];
     124    self.playerControllerProxy = [[[classAVPlayerController alloc] init] autorelease];
    125125    return self;
    126126}
Note: See TracChangeset for help on using the changeset viewer.