Skip to content

Instantly share code, notes, and snippets.

@hgaiser
Created September 3, 2014 12:27
Show Gist options
  • Save hgaiser/9ed14de3d776cd34100e to your computer and use it in GitHub Desktop.
Save hgaiser/9ed14de3d776cd34100e to your computer and use it in GitHub Desktop.
diff --git a/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm b/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm
index 3956f21..47e41f0 100644
--- a/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm
+++ b/RenderSystems/GL/src/OSX/OgreOSXCocoaWindow.mm
@@ -290,6 +290,7 @@ namespace Ogre {
}
mWindow = [mView window];
+ [mWindow retain];
// Add our window to the window event listener class
WindowEventUtilities::_addRenderWindow(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment