commit | 1d892439c73e73ae2cdceb5df30f34f7c5eefe28 | [log] [tgz] |
---|---|---|
author | Jason Sams <[email protected]> | Tue May 08 13:12:46 2012 -0700 |
committer | Jason Sams <[email protected]> | Tue May 08 13:12:46 2012 -0700 |
tree | 9a815e8c390a63dfc071fad4bc3af217a0d8fffe | |
parent | 298691a87d1b30d1221e303a6788d5272c223971 [diff] [blame] |
Fix leak when app does not exit cleanly. BUG=6452240 Change-Id: I305300fa4e11a8f11e275067f46bde3d5ad1a6e9
diff --git a/driver/rsdGL.cpp b/driver/rsdGL.cpp index a935e6f..80fa137 100644 --- a/driver/rsdGL.cpp +++ b/driver/rsdGL.cpp
@@ -154,6 +154,7 @@ void rsdGLShutdown(const Context *rsc) { RsdHal *dc = (RsdHal *)rsc->mHal.drv; + rsdGLSetSurface(rsc, 0, 0, NULL); dc->gl.shaderCache->cleanupAll(); delete dc->gl.shaderCache; delete dc->gl.vertexArrayState;