Commit 7e11bc40 authored by Sam Lantinga's avatar Sam Lantinga

Date: Tue, 5 Oct 2004 11:04:02 -0400

From: Bob Ippolito
Subject: [SDL] PATCH: Fix for release count bug in SDL_QuartzWM

SDL_QuartzWM incorrectly does [window close]; [window release];

The semantics for -[NSWindow close] are as follows:

Removes the receiver from the screen. If the receiver is set to be
released when closed, a release message is sent to the object after the
current event is completed. For an NSWindow object, the default is to
be released on closing, while for an NSPanel object, the default is not
to be released. You can use the setReleasedWhenClosed: method to change
the default behavior.

This patch simply removes the incorrect release.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40968
parent 9dd9471d
...@@ -485,7 +485,6 @@ static void QZ_UnsetVideoMode (_THIS) { ...@@ -485,7 +485,6 @@ static void QZ_UnsetVideoMode (_THIS) {
else { else {
[ qz_window close ]; [ qz_window close ];
[ qz_window release ];
qz_window = nil; qz_window = nil;
window_view = nil; window_view = nil;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment