opengles emulator: GLES memory leaks
fix some memory leaks detected in valgrind Change-Id: I48d91223c520c9c10b797a89a679eed7a950a3e6
This commit is contained in:
committed by
David 'Digit' Turner
parent
8ee217f9cc
commit
5018365268
@@ -261,7 +261,7 @@ int FBConfig::chooseConfig(FrameBuffer *fb, EGLint * attribs, uint32_t * configs
|
||||
|
||||
s_egl.eglChooseConfig(dpy, newAttribs, matchedConfigs, nConfigs, &nConfigs);
|
||||
|
||||
delete newAttribs;
|
||||
delete[] newAttribs;
|
||||
|
||||
//
|
||||
// From all matchedConfigs we need only config_size FBConfigs, so we intersect both lists compating the CONFIG_ID attribute
|
||||
@@ -284,7 +284,7 @@ int FBConfig::chooseConfig(FrameBuffer *fb, EGLint * attribs, uint32_t * configs
|
||||
}
|
||||
}
|
||||
|
||||
delete matchedConfigs;
|
||||
delete[] matchedConfigs;
|
||||
|
||||
return nVerifiedCfgs;
|
||||
}
|
||||
@@ -308,6 +308,6 @@ FBConfig::FBConfig(EGLDisplay p_eglDpy, EGLConfig p_eglCfg)
|
||||
FBConfig::~FBConfig()
|
||||
{
|
||||
if (m_attribValues) {
|
||||
delete m_attribValues;
|
||||
delete[] m_attribValues;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user