From 51afe8a541837fd5ca9c9164e677f1073768df05 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Mon, 29 Dec 2014 10:29:16 +0200 Subject: [PATCH] Removed explicit release of window in Cocoa IVideo implementation It caused a crash on older OS X like 10.5 and it absence doesn't lead to a memory leak --- src/posix/cocoa/i_video.mm | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/posix/cocoa/i_video.mm b/src/posix/cocoa/i_video.mm index 0a872e88e..f75f1abdf 100644 --- a/src/posix/cocoa/i_video.mm +++ b/src/posix/cocoa/i_video.mm @@ -152,7 +152,6 @@ class CocoaVideo : public IVideo { public: explicit CocoaVideo(int multisample); - ~CocoaVideo(); virtual EDisplayType GetDisplayType() { return DISPLAY_Both; } virtual void SetWindowedScale(float scale); @@ -414,11 +413,6 @@ CocoaVideo::CocoaVideo(const int multisample) [m_window setContentView:glView]; } -CocoaVideo::~CocoaVideo() -{ - [m_window release]; -} - void CocoaVideo::StartModeIterator(const int bits, const bool fullscreen) { m_modeIterator.index = 0;