diff --git a/libs/utils/AssetManager.cpp b/libs/utils/AssetManager.cpp index 13004cdf7..0b4d1acad 100644 --- a/libs/utils/AssetManager.cpp +++ b/libs/utils/AssetManager.cpp @@ -680,6 +680,9 @@ const ResTable* AssetManager::getResTable(bool required) const delete ass; } } + if (idmap != NULL) { + delete idmap; + } } if (required && !rt) LOGW("Unable to find resources file resources.arsc");