x11: Reset the window handle after destroying it
commita7927193002ef9c5a79bd74582260acc9f1ef66d
authordnicoara <dnicoara@chromium.org>
Thu, 26 Mar 2015 23:30:21 +0000 (26 16:30 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 26 Mar 2015 23:31:51 +0000 (26 23:31 +0000)
tree2174b847373b2b3251f17ccabbdcfff0624f6ec0
parente5ea1b74e2643c92685411dfe992f292e5a61d31
x11: Reset the window handle after destroying it

GLSurface::Destroy() could be called from outside the GLSurface
implementation. Since it is also called in NativeViewGLSurfaceGLX's
destructor, calling Destroy() twice will cause a BadWindow error.

BUG=470004

Review URL: https://codereview.chromium.org/1034173004

Cr-Commit-Position: refs/heads/master@{#322494}
ui/gl/gl_surface_glx.cc