Commit bbae6326 authored by David Fuhrmann's avatar David Fuhrmann

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
parent e23256db
......@@ -115,16 +115,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