view Xcode/SDLTest/sdlcommon_prefix.h @ 4897:c3eb55210a90

SDL_DestroyWindow is setting window->magic to NULL too early. - window->magic is also checked in SDL_DestroyRenderer. All cleanup code like freeing the renderer and textures is not executed. The patch moves window_magic = NULL behind the SDL_DestroyRenderer call. Kind regards, André
author Sam Lantinga <slouken@libsdl.org>
date Mon, 27 Sep 2010 00:49:34 -0700
parents d44a0a913aa2
children
line wrap: on
line source

/*
 *  sdlcommon_prefix.h
 *  SDLTest
 *
 *  Created by Darrell Walisser on Wed Aug 06 2003.
 *  Copyright (c) 2003 __MyCompanyName__. All rights reserved.
 *
 */
#ifndef _SDLCOMMON_PREFIX_H_
#define _SDLCOMMON_PREFIX_H_
#include "SDL.h"
#endif