diff options
author | Youngsang Cho <youngsang@google.com> | 2014-04-30 17:24:20 +0900 |
---|---|---|
committer | Youngsang Cho <youngsang@google.com> | 2014-04-30 20:05:32 +0900 |
commit | f836206818ce338db83a3c23c486fb8cab29cb6d (patch) | |
tree | 06edf4bb024824f62343cb8104b788d49e58f4a3 /services | |
parent | aa2112f671e4f14555e25a6d765ce4bad454a43f (diff) | |
download | frameworks_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.java | 4 |
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); } } |