From 237565b86555c68b7679fab94f89c4136a24ffe9 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 9 Jul 2003 04:20:37 +0000 Subject: [PATCH] cleanup --- stepmania/src/BannerCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/BannerCache.cpp b/stepmania/src/BannerCache.cpp index ea22a3176a..70e1f2e4be 100644 --- a/stepmania/src/BannerCache.cpp +++ b/stepmania/src/BannerCache.cpp @@ -387,8 +387,8 @@ void BannerCache::CacheBannerInternal( CString BannerPath ) /* If an old image is loaded, free it. */ if( m_BannerPathToImage.find(BannerPath) != m_BannerPathToImage.end() ) { - SDL_Surface *img = m_BannerPathToImage[BannerPath]; - SDL_FreeSurface( img ); + SDL_Surface *oldimg = m_BannerPathToImage[BannerPath]; + SDL_FreeSurface( oldimg ); m_BannerPathToImage.erase(BannerPath); }