commit | 7c57d2337150ab52c148d30d9126f3b99ca951b4 | [log] [tgz] |
---|---|---|
author | sean_lu <sean_lu@htc.com> | Mon Jun 16 15:11:29 2014 +0800 |
committer | sean_lu <sean_lu@htc.com> | Mon Jun 16 15:11:29 2014 +0800 |
tree | bde900b8b4b57e83b615a12732af5b29dfffc943 | |
parent | 748f4b8d42541955850e76972b1ab3d9c98e226d [diff] [blame] |
[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
diff --git a/libs/androidfw/AssetManager.cpp b/libs/androidfw/AssetManager.cpp index b4d482a..87164ca 100644 --- a/libs/androidfw/AssetManager.cpp +++ b/libs/androidfw/AssetManager.cpp
@@ -1747,6 +1747,7 @@ } mergeInfoLocked(pMergedInfo, pContents); + delete pContents; return true; }