diff options
author | sean_lu <sean_lu@htc.com> | 2014-06-16 15:11:29 +0800 |
---|---|---|
committer | sean_lu <sean_lu@htc.com> | 2014-06-16 15:11:29 +0800 |
commit | 7c57d2337150ab52c148d30d9126f3b99ca951b4 (patch) | |
tree | bde900b8b4b57e83b615a12732af5b29dfffc943 /libs/androidfw/AssetManager.cpp | |
parent | 748f4b8d42541955850e76972b1ab3d9c98e226d (diff) |
[Asset Manager] Fix memory leakage bug
Symptom: memory leakage
Root Cause: new SortedVector but not free it in native cpp
Solution: free the SortedVector
Project: AOSP
Note:
Change-Id: Iab5a7f2e8d8509631301e7231427927d4797c856
Diffstat (limited to 'libs/androidfw/AssetManager.cpp')
-rw-r--r-- | libs/androidfw/AssetManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/androidfw/AssetManager.cpp b/libs/androidfw/AssetManager.cpp index b4d482ad0a54..87164ca2f5aa 100644 --- a/libs/androidfw/AssetManager.cpp +++ b/libs/androidfw/AssetManager.cpp @@ -1747,6 +1747,7 @@ bool AssetManager::fncScanAndMergeDirLocked( } mergeInfoLocked(pMergedInfo, pContents); + delete pContents; return true; } |