opengles emulator: GLES fix memory leaks
fix some memory leaks and potential risks detected using valgrind Change-Id: I0f69cf4d4b4ba5eeb9c735f6712c301bcd4d3d36
This commit is contained in:
committed by
David 'Digit' Turner
parent
f6b9241094
commit
0fd3ee21c8
@@ -36,7 +36,7 @@ ReadBuffer::~ReadBuffer()
|
||||
int ReadBuffer::getData()
|
||||
{
|
||||
if ((m_validData > 0) && (m_readPtr > m_buf)) {
|
||||
memcpy(m_buf, m_readPtr, m_validData);
|
||||
memmove(m_buf, m_readPtr, m_validData);
|
||||
}
|
||||
// get fresh data into the buffer;
|
||||
size_t len = m_size - m_validData;
|
||||
|
||||
Reference in New Issue
Block a user