commit | c62bb787e53fc4b400219567585b365a5792412c | [log] [tgz] |
---|---|---|
author | Eino-Ville Talvala <etalvala@google.com> | Mon Sep 24 13:44:07 2012 -0700 |
committer | Eino-Ville Talvala <etalvala@google.com> | Tue Sep 25 12:12:40 2012 -0700 |
tree | 819f2acbf132ef789148d1b15422235b62f7f81d | |
parent | 852c381dbd1a9f86e6759201b50ac8847a1c3e3c [diff] [blame] |
Camera2: Make sure to clean out reprocess streams on shutdown as well. Otherwise, streams may persist past expected lifetime. Bug: 6243944 Change-Id: I901971b78baf9d577ea3812588dec3885232e7ef
diff --git a/services/camera/libcameraservice/Camera2Device.cpp b/services/camera/libcameraservice/Camera2Device.cpp index 49f0795..2e4098e 100644 --- a/services/camera/libcameraservice/Camera2Device.cpp +++ b/services/camera/libcameraservice/Camera2Device.cpp
@@ -145,6 +145,7 @@ ALOGW("%s: Closing camera device %d with %d requests in flight!", __FUNCTION__, mId, inProgressCount); } + mReprocessStreams.clear(); mStreams.clear(); res = mDevice->common.close(&mDevice->common); if (res != OK) {