Skip to content

Commit

Permalink
[PR 14313] RetroPlayer: Fix out-of-memory error on resolution change
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Aug 17, 2018
1 parent f90dbf0 commit 6d3f248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/cores/RetroPlayer/buffers/BaseRenderBufferPool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ IRenderBuffer *CBaseRenderBufferPool::GetBuffer(unsigned int width, unsigned int

for (auto it = m_free.begin(); it != m_free.end(); ++it)
{
std::unique_ptr<IRenderBuffer> &buffer = m_free.front();
std::unique_ptr<IRenderBuffer> &buffer = *it;

// Only return buffers of the same dimensions
const unsigned int bufferWidth = buffer->GetWidth();
Expand Down

0 comments on commit 6d3f248

Please sign in to comment.