From f800c826a82268ca0223758c7d3d45f8b0d59771 Mon Sep 17 00:00:00 2001 From: frosch Date: Mon, 11 Mar 2013 17:45:23 +0000 Subject: (svn r25081) -Fix [FS#5500]: Catch exception anonymously, if the exception content is not of interest. --- src/spritecache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/spritecache.cpp b/src/spritecache.cpp index 3833d500b..767282d1e 100644 --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -862,7 +862,7 @@ static void GfxInitSpriteCache() try { /* Try to allocate 50% more to make sure we do not allocate almost all available. */ _spritecache_ptr = reinterpret_cast(new byte[_allocated_sprite_cache_size + _allocated_sprite_cache_size / 2]); - } catch (std::bad_alloc &oom) { + } catch (std::bad_alloc &) { _spritecache_ptr = NULL; } -- cgit v1.2.3-54-g00ecf