summaryrefslogtreecommitdiffstats
path: root/carousel/java
diff options
context:
space:
mode:
authorBryan Mawhinney <bryanmawhinney@google.com>2010-09-16 12:01:20 +0100
committerBryan Mawhinney <bryanmawhinney@google.com>2010-09-17 08:08:23 +0100
commitffd2d025459cfd383fff8889c6293b951f864ac1 (patch)
tree82bc14215e207902d6c7412de2374bec256ec328 /carousel/java
parent1e9a4915f33f3ccdd6253201e7aec1901c780234 (diff)
downloadandroid_frameworks_ex-ffd2d025459cfd383fff8889c6293b951f864ac1.tar.gz
android_frameworks_ex-ffd2d025459cfd383fff8889c6293b951f864ac1.tar.bz2
android_frameworks_ex-ffd2d025459cfd383fff8889c6293b951f864ac1.zip
Fix RenderScriptGL leak in CarouselView.
Previously we called ensureRenderScript both when creating the view and when attaching it to a window. This caused us to overwrite the RenderScriptGL instance without shutting it down first. Change-Id: Ie448f1135121111bd379b1a7e827acd7e3834bcf
Diffstat (limited to 'carousel/java')
-rw-r--r--carousel/java/com/android/ex/carousel/CarouselView.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/carousel/java/com/android/ex/carousel/CarouselView.java b/carousel/java/com/android/ex/carousel/CarouselView.java
index 9daaebd..cb69bed 100644
--- a/carousel/java/com/android/ex/carousel/CarouselView.java
+++ b/carousel/java/com/android/ex/carousel/CarouselView.java
@@ -95,7 +95,6 @@ public abstract class CarouselView extends RSSurfaceView {
super(context, attrs);
mContext = context;
boolean useDepthBuffer = true;
- ensureRenderScript();
// TODO: add parameters to layout
}