summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorYoungsang Cho <youngsang@google.com>2014-04-30 17:24:20 +0900
committerYoungsang Cho <youngsang@google.com>2014-04-30 20:05:32 +0900
commitf836206818ce338db83a3c23c486fb8cab29cb6d (patch)
tree06edf4bb024824f62343cb8104b788d49e58f4a3 /services
parentaa2112f671e4f14555e25a6d765ce4bad454a43f (diff)
downloadframeworks_base-f836206818ce338db83a3c23c486fb8cab29cb6d.zip
frameworks_base-f836206818ce338db83a3c23c486fb8cab29cb6d.tar.gz
frameworks_base-f836206818ce338db83a3c23c486fb8cab29cb6d.tar.bz2
Explictly release the surface in TV input framework
Change-Id: Id178e8959f9c25d1d5f1ab85d5e8455577570d11
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/tv/TvInputManagerService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/tv/TvInputManagerService.java b/services/core/java/com/android/server/tv/TvInputManagerService.java
index 649f9dc..50dd27d 100644
--- a/services/core/java/com/android/server/tv/TvInputManagerService.java
+++ b/services/core/java/com/android/server/tv/TvInputManagerService.java
@@ -554,6 +554,10 @@ public final class TvInputManagerService extends SystemService {
}
}
} finally {
+ if (surface != null) {
+ // surface is not used in TvInputManagerService.
+ surface.release();
+ }
Binder.restoreCallingIdentity(identity);
}
}