Commit 3c2b8b3e authored by David Fuhrmann's avatar David Fuhrmann

macosx: add missing retains when exchanging views

parent d856bd93
...@@ -784,9 +784,11 @@ ...@@ -784,9 +784,11 @@
[screen setFullscreenPresentationOptions]; [screen setFullscreenPresentationOptions];
[o_video_view retain];
[[o_video_view superview] replaceSubview:o_video_view with:o_temp_view]; [[o_video_view superview] replaceSubview:o_video_view with:o_temp_view];
[o_temp_view setFrame:[o_video_view frame]]; [o_temp_view setFrame:[o_video_view frame]];
[o_fullscreen_window setContentView:o_video_view]; [o_fullscreen_window setContentView:o_video_view];
[o_video_view release];
[o_fullscreen_window makeKeyAndOrderFront:self]; [o_fullscreen_window makeKeyAndOrderFront:self];
[o_fullscreen_window orderFront:self animate:YES]; [o_fullscreen_window orderFront:self animate:YES];
...@@ -807,9 +809,11 @@ ...@@ -807,9 +809,11 @@
/* Make sure we don't see the o_video_view disappearing of the screen during this operation */ /* Make sure we don't see the o_video_view disappearing of the screen during this operation */
NSDisableScreenUpdates(); NSDisableScreenUpdates();
[o_video_view retain];
[[o_video_view superview] replaceSubview:o_video_view with:o_temp_view]; [[o_video_view superview] replaceSubview:o_video_view with:o_temp_view];
[o_temp_view setFrame:[o_video_view frame]]; [o_temp_view setFrame:[o_video_view frame]];
[o_fullscreen_window setContentView:o_video_view]; [o_fullscreen_window setContentView:o_video_view];
[o_video_view release];
[o_fullscreen_window makeKeyAndOrderFront:self]; [o_fullscreen_window makeKeyAndOrderFront:self];
NSEnableScreenUpdates(); NSEnableScreenUpdates();
} }
......
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