From 6a1fadea851db236331b3dfe1f3c1e482556057f Mon Sep 17 00:00:00 2001 From: Marco Nelissen <> Date: Mon, 20 Apr 2009 16:16:01 -0700 Subject: AI 147028: Fix up aapt so it runs cleanly under the valgrind leak checker. Automated import of CL 147028 --- tools/aapt/Resource.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'tools/aapt/Resource.cpp') diff --git a/tools/aapt/Resource.cpp b/tools/aapt/Resource.cpp index b2bd9ffc35ec..2e4d0a4747c6 100644 --- a/tools/aapt/Resource.cpp +++ b/tools/aapt/Resource.cpp @@ -45,13 +45,6 @@ static String8 parseResourceName(const String8& leaf) } } -class ResourceTypeSet : public RefBase, - public KeyedVector > -{ -public: - ResourceTypeSet(); -}; - ResourceTypeSet::ResourceTypeSet() :RefBase(), KeyedVector >() @@ -1055,6 +1048,7 @@ status_t buildResources(Bundle* bundle, const sp& assets) printf(" Writing public definitions to %s.\n", bundle->getPublicOutputFile()); } table.writePublicDefinitions(String16(assets->getPackage()), fp); + fclose(fp); } NOISY( @@ -1072,7 +1066,6 @@ status_t buildResources(Bundle* bundle, const sp& assets) return err; } } - return err; } -- cgit v1.2.3-59-g8ed1b