From cf779be1808321eca2b671d298c0ee8767607420 Mon Sep 17 00:00:00 2001 From: mantognini Date: Sun, 23 Jan 2011 23:42:48 +0000 Subject: [PATCH] OSX, fix random crash with sf::Window::Create git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1777 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/OSX/SFWindowController.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/SFML/Window/OSX/SFWindowController.mm b/src/SFML/Window/OSX/SFWindowController.mm index 50e0208fe..e8676e698 100644 --- a/src/SFML/Window/OSX/SFWindowController.mm +++ b/src/SFML/Window/OSX/SFWindowController.mm @@ -308,6 +308,8 @@ -(void)closeWindow { [myWindow close]; + [myWindow setDelegate:nil]; + [self setRequesterTo:0]; }