diff options
author | James Dong <jdong@google.com> | 2011-04-24 12:38:35 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-04-24 12:40:16 -0700 |
commit | adfb5592622305090ad39dcc2b7df477736da2c6 (patch) | |
tree | b343061612b7887cbb898fb53c0f9c407dea4450 /drm/drmserver | |
parent | f8c45a90a69cec5041f6fb11a7e31af646e43d25 (diff) | |
download | frameworks_av-adfb5592622305090ad39dcc2b7df477736da2c6.zip frameworks_av-adfb5592622305090ad39dcc2b7df477736da2c6.tar.gz frameworks_av-adfb5592622305090ad39dcc2b7df477736da2c6.tar.bz2 |
Fix memory leak from retrieval of getSupportedDrmInfo.
Change-Id: Ic2192a9791c0a3c5e5357b4367a2d8bfb15af20c
Diffstat (limited to 'drm/drmserver')
-rw-r--r-- | drm/drmserver/DrmManager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drm/drmserver/DrmManager.cpp b/drm/drmserver/DrmManager.cpp index 2fee59c..1809619 100644 --- a/drm/drmserver/DrmManager.cpp +++ b/drm/drmserver/DrmManager.cpp @@ -101,6 +101,7 @@ status_t DrmManager::loadPlugIns(const String8& plugInDirPath) { DrmSupportInfo* info = mPlugInManager.getPlugIn(plugInPath).getSupportInfo(0); if (NULL != info) { mSupportInfoToPlugInIdMap.add(*info, plugInPath); + delete info; } } } @@ -178,6 +179,7 @@ status_t DrmManager::installDrmEngine(int uniqueId, const String8& absolutePath) DrmSupportInfo* info = rDrmEngine.getSupportInfo(0); mSupportInfoToPlugInIdMap.add(*info, absolutePath); + delete info; return DRM_NO_ERROR; } |