Skip to content

Commit

Permalink
Fix SFML patch for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
4ian committed Dec 31, 2016
1 parent 90e1a33 commit 4825313
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
diff --git a/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm b/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm
diff --git a/src/SFML/Window/OSX/SFViewController.mm b/src/SFML/Window/OSX/SFViewController.mm
index 7d736e3..113cacd 100644
--- a/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm
+++ b/ExtLibs/SFML/src/SFML/Window/OSX/SFViewController.mm
--- a/src/SFML/Window/OSX/SFViewController.mm
+++ b/src/SFML/Window/OSX/SFViewController.mm
@@ -82,8 +82,11 @@ -(id)initWithView:(NSView *)view
////////////////////////////////////////////////////////
-(void)dealloc
{
+ NSLog(@"SFViewController::dealloc called on %@", self);
[self closeWindow];

+ // See https://github.com/SFML/SFML/issues/824
+ [[NSNotificationCenter defaultCenter] removeObserver:m_oglView];
[m_view release];
[m_oglView release];

0 comments on commit 4825313

Please sign in to comment.