Browse Source

movie view: fix potential failure to hide the controls

Felix Paul Kühne 12 years ago
parent
commit
011700ff87
1 changed files with 3 additions and 1 deletions
  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];