commit | c31dd3f30d02758747a40da1057a326b8bc0e01e | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Tue May 08 11:55:07 2012 -0700 |
committer | Romain Guy <romainguy@google.com> | Tue May 08 11:55:07 2012 -0700 |
tree | f8fa46c250e1db0be703315365303dca86bd2647 | |
parent | 2c3f1b05ced870bd4c617f8eb3fdfb897ab502db [diff] |
Fix Surface leak Bug #6452240 Change-Id: I891bd13546aadb4bff9e119f60c3fa4717b0cb91
diff --git a/src/com/android/wallpaper/RenderScriptWallpaper.java b/src/com/android/wallpaper/RenderScriptWallpaper.java index a8f86e0..0016d33 100644 --- a/src/com/android/wallpaper/RenderScriptWallpaper.java +++ b/src/com/android/wallpaper/RenderScriptWallpaper.java
@@ -53,6 +53,7 @@ mRenderer = null; } if (mRs != null) { + mRs.setSurface(null, 0, 0); mRs.destroy(); mRs = null; }