Skip to content

Commit 1a72ee9

Browse files
committed
修复云村内存泄漏
Change-Id: Iea937494b6d169b0724b6dc31ef3060c34f21150
1 parent 62807d2 commit 1a72ee9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/LinkSDKDemo/Video/PlayBack/CloudStorage/Controller/TIoTCloudStorageVC.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ -(void)viewWillAppear:(BOOL)animated{
140140

141141
-(void)viewWillDisappear:(BOOL)animated{
142142
[super viewWillDisappear:animated];
143+
[self stopCloudPlayMovie];
143144
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
144145

145146
[self recoverNavigationBar];
@@ -169,7 +170,6 @@ - (void)dealloc{
169170
[[UIDevice currentDevice]endGeneratingDeviceOrientationNotifications];
170171
[self closeTime];
171172

172-
[self stopCloudPlayMovie];
173173

174174
printf("debugdeinit---%s,%s,%d", __FILE__, __FUNCTION__, __LINE__);
175175
}
@@ -1476,6 +1476,7 @@ - (void)configVideo {
14761476
- (void)stopCloudPlayMovie {
14771477
if (self.cloudPlayer != nil) {
14781478
[self.cloudPlayer stop];
1479+
[self.cloudPlayer shutdown];
14791480
[self.cloudPlayer.view removeFromSuperview];
14801481
self.cloudPlayer = nil;
14811482
}

0 commit comments

Comments
 (0)