Skip to content

Commit

Permalink
Stopped deleting items in renderlist::DataBase-destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
kjetilly committed Nov 22, 2013
1 parent 116c220 commit 803ea0f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/renderlist/DataBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,10 +605,6 @@ DataBase::bump( )

DataBase::~DataBase()
{
for(std::map<std::string, Item*>::iterator it = m_name_map.begin(); it != m_name_map.end(); ++it) {
delete it->second;
}

std::vector<Id> shadersToDelete;
for(std::map<Id, Shader*>::iterator it = m_shaders.begin(); it != m_shaders.end(); ++it) {
shadersToDelete.push_back(it->first);
Expand Down

0 comments on commit 803ea0f

Please sign in to comment.