Commit 8e3f7f33 authored by Gleb Pinigin's avatar Gleb Pinigin Committed by Felix Paul Kühne
Browse files

Fix of memory leaks


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 9b41e6ed
...@@ -24,6 +24,16 @@ ...@@ -24,6 +24,16 @@
[_masterPopoverController release]; [_masterPopoverController release];
[_externalWindow release]; [_externalWindow release];
[_toolbar release]; [_toolbar release];
[_movieView release];
[_backButton release];
[_positionSlider release];
[_timeDisplay release];
[_playPauseButton release];
[_bwdButton release];
[_fwdButton release];
[_subtitleActionSheet release];
[_audioSwitcherButton release];
[_controllerPanel release];
[[NSNotificationCenter defaultCenter] removeObserver:self]; [[NSNotificationCenter defaultCenter] removeObserver:self];
[super dealloc]; [super dealloc];
} }
...@@ -262,14 +272,14 @@ ...@@ -262,14 +272,14 @@
UIScreen *screen = [[UIScreen screens] objectAtIndex:1]; UIScreen *screen = [[UIScreen screens] objectAtIndex:1];
screen.overscanCompensation = UIScreenOverscanCompensationInsetApplicationFrame; screen.overscanCompensation = UIScreenOverscanCompensationInsetApplicationFrame;
self.externalWindow = [[UIWindow alloc] initWithFrame:screen.bounds]; self.externalWindow = [[[UIWindow alloc] initWithFrame:screen.bounds] autorelease];
UIViewController *controller = [[VLCExternalDisplayController alloc] init]; UIViewController *controller = [[VLCExternalDisplayController alloc] init];
self.externalWindow.rootViewController = controller; self.externalWindow.rootViewController = controller;
[controller.view addSubview:_movieView]; [controller.view addSubview:_movieView];
controller.view.frame = screen.bounds; controller.view.frame = screen.bounds;
_movieView.frame = screen.bounds; _movieView.frame = screen.bounds;
[controller release];
self.externalWindow.screen = screen; self.externalWindow.screen = screen;
self.externalWindow.hidden = NO; self.externalWindow.hidden = NO;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment