Commit 9ec38cd7 authored by David Fuhrmann's avatar David Fuhrmann Committed by Jean-Baptiste Kempf

Revert "macosx: Spin event loop to process pending selectors on main thread"

This caused too many unrelated crashes / problems.

This partly reverts commit 5d0d2b0d.

close #19983

(cherry picked from commit bbae6326)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 02f9dda4
......@@ -114,16 +114,6 @@ void CloseIntf (vlc_object_t *p_this)
[[VLCMain sharedInstance] applicationWillTerminate:nil];
[VLCMain killInstance];
* Spinning the event loop here is important to help cleaning up all objects which should be
* destroyed here. Its possible that main thread selectors (which hold a strong reference
* to the target object), are still in the queue (e.g. fired from variable callback).
* Thus make sure those are still dispatched and the references to the targets are
* cleared, to allow the objects to be released.
msg_Dbg(p_this, "Spin the event loop to clean up the interface");
[[NSRunLoop mainRunLoop] runUntilDate:[NSDate date]];
p_interface_thread = nil;
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