Fixes memory leak in CVertexBuffer::Release, patch by Markus, fixes #1933
This was SVN commit r13423.
This commit is contained in:
parent
bc8d461b81
commit
17bb997e0e
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2011 Wildfire Games.
|
||||
/* Copyright (C) 2013 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@ -161,6 +161,7 @@ void CVertexBuffer::Release(VBChunk* chunk)
|
||||
{
|
||||
chunk->m_Index = std::min(chunk->m_Index, (*iter)->m_Index);
|
||||
chunk->m_Count += (*iter)->m_Count;
|
||||
delete *iter;
|
||||
m_FreeList.erase(iter);
|
||||
coalesced = true;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user