Commit da66ed62 by Corentin Wallez

WindowSurfaceCGL: unregister the SwapLayer on destruction

Previously the SwapLayer was kept in the CALayer hierarchy after WindowSurfaceCGL's destruction which caused SwapLayer's callbacks to be called after the shared data was freed, causing a segfault. BUG=angleproject:1233 Change-Id: I71dce45330e6b7d5f06a41198c10890b1d8d520e Reviewed-on: https://chromium-review.googlesource.com/320711 Tryjob-Request: Corentin Wallez <cwallez@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent c8c99a0a
......@@ -177,6 +177,7 @@ WindowSurfaceCGL::~WindowSurfaceCGL()
if (mSwapLayer != nil)
{
[mSwapLayer removeFromSuperlayer];
[mSwapLayer release];
mSwapLayer = nil;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment