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
This commit is contained in:
alexey.lysiuk 2014-12-29 10:29:16 +02:00
parent 4662069b94
commit 51afe8a541

View file

@ -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;