Skip to content

Commit 9049ddb

Browse files
authored
manually maintain reference count (#20329)
1 parent e3c636c commit 9049ddb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cocos/ui/UIVideoPlayer-ios.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ typedef NS_ENUM(NSInteger, PlayerbackState) {
4747
PlayerbackStateCompleted
4848
};
4949

50-
@property (strong, nonatomic) AVPlayerViewController * playerController;
50+
@property (assign, nonatomic) AVPlayerViewController * playerController;
5151

5252
- (void) setFrame:(int) left :(int) top :(int) width :(int) height;
5353
- (void) setURL:(int) videoSource :(std::string&) videoUrl;
@@ -87,7 +87,7 @@ @implementation UIVideoViewWrapperIos
8787
-(id)init:(void*)videoPlayer
8888
{
8989
if (self = [super init]) {
90-
self.playerController = [[AVPlayerViewController new] autorelease];
90+
self.playerController = [AVPlayerViewController new];
9191

9292
[self setRepeatEnabled:FALSE];
9393
[self showPlaybackControls:TRUE];

0 commit comments

Comments
 (0)