зеркало из https://github.com/AvaloniaUI/angle.git
Fix two leaks and a delete vs delete[] reported by ASAN
BUG=angleproject:1137 Change-Id: Ic654b79aa56ae0c0a24097b85ab48f5af53ca1f7 Reviewed-on: https://chromium-review.googlesource.com/295154 Reviewed-by: Jamie Madill <jmadill@chromium.org> Tested-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
Родитель
47a878c65d
Коммит
254fceac12
|
@ -385,6 +385,9 @@ egl::ConfigSet DisplayGLX::generateConfigs() const
|
|||
int id = configs.add(config);
|
||||
configIdToGLXConfig[id] = glxConfig;
|
||||
}
|
||||
|
||||
XFree(glxConfigs);
|
||||
|
||||
return configs;
|
||||
}
|
||||
|
||||
|
|
|
@ -141,10 +141,10 @@ class MipmapTest : public ANGLETest
|
|||
glDeleteTextures(1, &mOffscreenTexture2D);
|
||||
glDeleteTextures(1, &mOffscreenTextureCube);
|
||||
|
||||
delete mLevelZeroBlueInitData;
|
||||
delete mLevelZeroWhiteInitData;
|
||||
delete mLevelOneInitData;
|
||||
delete mLevelTwoInitData;
|
||||
SafeDeleteArray(mLevelZeroBlueInitData);
|
||||
SafeDeleteArray(mLevelZeroWhiteInitData);
|
||||
SafeDeleteArray(mLevelOneInitData);
|
||||
SafeDeleteArray(mLevelTwoInitData);
|
||||
|
||||
ANGLETest::TearDown();
|
||||
}
|
||||
|
|
|
@ -305,6 +305,8 @@ bool X11Window::resize(int width, int height)
|
|||
angle::Sleep(10);
|
||||
}
|
||||
|
||||
delete timer;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче