From 3e17850f1cc6c4e65ebaf89fa8b2c30a3b66fdf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Kongstad?= Date: Thu, 5 May 2011 10:40:42 +0200 Subject: [PATCH] Add missing clean-up of idmap file descriptors. Change-Id: I9bdc9a4b7962f1a8dce77f4b213c8b9dc26e4b0f --- libs/utils/AssetManager.cpp | 3 +++ 1 file changed, 3 insertions(+) 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");