Mercurial > sdl-ios-xcode
comparison src/video/quartz/SDL_QuartzVideo.m @ 967:cda407d627a3
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.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 12 Nov 2004 21:29:52 +0000 |
parents | af585d6efec8 |
children | 430d8d701f69 |
comparison
equal
deleted
inserted
replaced
966:f72cc0c7305f | 967:cda407d627a3 |
---|---|
483 } | 483 } |
484 /* Release window mode resources */ | 484 /* Release window mode resources */ |
485 else { | 485 else { |
486 | 486 |
487 [ qz_window close ]; | 487 [ qz_window close ]; |
488 [ qz_window release ]; | |
489 qz_window = nil; | 488 qz_window = nil; |
490 window_view = nil; | 489 window_view = nil; |
491 | 490 |
492 /* Release the OpenGL context */ | 491 /* Release the OpenGL context */ |
493 if ( mode_flags & SDL_OPENGL ) | 492 if ( mode_flags & SDL_OPENGL ) |