From 4f5377b20281659041e01d58212dfba03b5a8633 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 12 Oct 2002 01:15:39 +0000 Subject: [PATCH] quiet spurious warning --- stepmania/src/RageTextureManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageTextureManager.cpp b/stepmania/src/RageTextureManager.cpp index 45bca719df..2d88c7898a 100644 --- a/stepmania/src/RageTextureManager.cpp +++ b/stepmania/src/RageTextureManager.cpp @@ -41,7 +41,8 @@ RageTextureManager::~RageTextureManager() i != m_mapPathToTexture.end(); ++i) { RageTexture* pTexture = i->second; - LOG->Trace( "TEXTUREMAN LEAK: '%s', RefCount = %d.", i->first, pTexture->m_iRefCount ); + if( pTexture->m_iRefCount ) + LOG->Trace( "TEXTUREMAN LEAK: '%s', RefCount = %d.", i->first, pTexture->m_iRefCount ); SAFE_DELETE( pTexture ); } }