OSDN Git Service

Add missing clean-up of idmap file descriptors.
authorMårten Kongstad <marten.kongstad@sonyericsson.com>
Thu, 5 May 2011 08:40:42 +0000 (10:40 +0200)
committerJohan Redestig <johan.redestig@sonyericsson.com>
Thu, 5 May 2011 13:38:14 +0000 (15:38 +0200)
Change-Id: I9bdc9a4b7962f1a8dce77f4b213c8b9dc26e4b0f

libs/utils/AssetManager.cpp

index 13004cd..0b4d1ac 100644 (file)
@@ -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");