From ffdfc83dcdb681dd33cf7b62e16236523f377d2d Mon Sep 17 00:00:00 2001 From: hikerstk Date: Fri, 12 Dec 2008 02:56:07 +0000 Subject: [PATCH] Bugfix: changing the resolution would cause a crash. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2634 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/items/item_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items/item_manager.cpp b/src/items/item_manager.cpp index 58d8c28b9..96f2281dd 100644 --- a/src/items/item_manager.cpp +++ b/src/items/item_manager.cpp @@ -103,7 +103,7 @@ void ItemManager::removeTextures() for(CI_type i=m_all_models.begin(); i!=m_all_models.end(); ++i) { - ssgDeRefDelete(i->second); + i->second->deRef(); } m_all_models.clear(); callback_manager->clear(CB_ITEM);