summaryrefslogtreecommitdiffstats
path: root/drm
diff options
context:
space:
mode:
authorGloria Wang <gwang@google.com>2011-06-21 13:19:36 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-21 13:19:36 -0700
commit185a19319e61ccd5e8806b7d00a20192dbcaf1f8 (patch)
tree1980e1ce6a6cf8d98ddee830a20f312655b997ba /drm
parentfb6c6167c81c6ade0956d05924eebdeeec65d973 (diff)
parent409e5a07f044239aac2059c9ba3b3f6f48eeaba1 (diff)
downloadframeworks_av-185a19319e61ccd5e8806b7d00a20192dbcaf1f8.zip
frameworks_av-185a19319e61ccd5e8806b7d00a20192dbcaf1f8.tar.gz
frameworks_av-185a19319e61ccd5e8806b7d00a20192dbcaf1f8.tar.bz2
Merge "Fix a memory leak in the Forward Lock plugin. For bug 4770217."
Diffstat (limited to 'drm')
-rw-r--r--drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp b/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp
index 07b3b47..31c3c14 100644
--- a/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp
+++ b/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/FwdLockEngine.cpp
@@ -512,6 +512,19 @@ status_t FwdLockEngine::onCloseDecryptSession(int uniqueId,
}
}
+ if (NULL != decryptHandle) {
+ if (NULL != decryptHandle->decryptInfo) {
+ delete decryptHandle->decryptInfo;
+ decryptHandle->decryptInfo = NULL;
+ }
+
+ decryptHandle->copyControlVector.clear();
+ decryptHandle->extendedData.clear();
+
+ delete decryptHandle;
+ decryptHandle = NULL;
+ }
+
LOGV("FwdLockEngine::onCloseDecryptSession Exit");
return result;
}