mirror of https://github.com/axmolengine/axmol.git
parent
fafd16e949
commit
fae3ef8e48
|
@ -87,7 +87,7 @@ typedef NS_ENUM(NSInteger, PlayerbackState) {
|
|||
-(id)init:(void*)videoPlayer
|
||||
{
|
||||
if (self = [super init]) {
|
||||
self.playerController = [AVPlayerViewController new];
|
||||
self.playerController = [[AVPlayerViewController new] autorelease];
|
||||
|
||||
[self setRepeatEnabled:FALSE];
|
||||
[self showPlaybackControls:TRUE];
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
|
||||
- (void)setupWebView {
|
||||
if (!self.wkWebView) {
|
||||
self.wkWebView = [[WKWebView alloc] init];
|
||||
self.wkWebView = [[[WKWebView alloc] init] autorelease];
|
||||
self.wkWebView.UIDelegate = self;
|
||||
self.wkWebView.navigationDelegate = self;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue