Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-base: Commit

frameworks/base


Commit MetaInfo

Revision3da446a31cb310f8f4357375cabfdd901a8fa6a7 (tree)
Time2014-08-27 19:19:20
Authorsean_lu <sean_lu@htc....>
CommiterChih-Wei Huang

Log Message

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

Change Summary

Incremental Difference

--- a/libs/androidfw/AssetManager.cpp
+++ b/libs/androidfw/AssetManager.cpp
@@ -1787,6 +1787,7 @@ bool AssetManager::fncScanAndMergeDirLocked(
17871787 }
17881788
17891789 mergeInfoLocked(pMergedInfo, pContents);
1790+ delete pContents;
17901791 return true;
17911792 }
17921793
Show on old repository browser