am 81134796: Fix leak when receiving multiple surface changed messages, typically when exiting a landscape app.
Merge commit '81134796071422abd5e43c8d9d51ead1dcdd4c3a' into eclair-mr2 * commit '81134796071422abd5e43c8d9d51ead1dcdd4c3a': Fix leak when receiving multiple surface changed messages, typically when exiting a landscape app.
This commit is contained in:
@@ -166,6 +166,12 @@ public class AllAppsView extends RSSurfaceView
|
||||
|
||||
long startTime = SystemClock.uptimeMillis();
|
||||
|
||||
if (mRS != null) {
|
||||
destroyRenderScript();
|
||||
mRS = null;
|
||||
mRollo = null;
|
||||
}
|
||||
|
||||
mRS = createRenderScript(true);
|
||||
mRollo = new RolloRS();
|
||||
mRollo.init(getResources(), w, h);
|
||||
|
||||
Reference in New Issue
Block a user