소스 검색

movie view: fix potential failure to hide the controls

Felix Paul Kühne 12 년 전
부모
커밋
011700ff87
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      AspenProject/VLCMovieViewController.m

+ 3 - 1
AspenProject/VLCMovieViewController.m

@@ -176,8 +176,10 @@
 
 - (void)viewWillDisappear:(BOOL)animated
 {
-    if (_idleTimer)
+    if (_idleTimer) {
         [_idleTimer invalidate];
+        _idleTimer = nil;
+    }
     [self.navigationController setNavigationBarHidden:NO animated:YES];
     [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;
     [_mediaPlayer pause];