We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4003802 commit 1174be2Copy full SHA for 1174be2
cocos/ui/UIVideoPlayer-ios.mm
@@ -87,7 +87,7 @@ @implementation UIVideoViewWrapperIos
87
-(id)init:(void*)videoPlayer
88
{
89
if (self = [super init]) {
90
- self.playerController = [AVPlayerViewController new];
+ self.playerController = [[AVPlayerViewController new] autorelease];
91
92
[self setRepeatEnabled:FALSE];
93
[self showPlaybackControls:TRUE];
cocos/ui/UIWebView/UIWebViewImpl-ios.mm
@@ -124,7 +124,7 @@ - (void)dealloc {
124
125
- (void)setupWebView {
126
if (!self.wkWebView) {
127
- self.wkWebView = [[WKWebView alloc] init];
+ self.wkWebView = [[[WKWebView alloc] init] autorelease];
128
self.wkWebView.UIDelegate = self;
129
self.wkWebView.navigationDelegate = self;
130
}
0 commit comments