summaryrefslogtreecommitdiff
path: root/tools/aapt
diff options
context:
space:
mode:
Diffstat (limited to 'tools/aapt')
-rw-r--r--tools/aapt/Command.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/aapt/Command.cpp b/tools/aapt/Command.cpp
index 05375b0cb871..21386b88ce2c 100644
--- a/tools/aapt/Command.cpp
+++ b/tools/aapt/Command.cpp
@@ -787,7 +787,9 @@ int doDump(Bundle* bundle)
// The dynamicRefTable can be null if there are no resources for this asset cookie.
// This fine.
- const DynamicRefTable* dynamicRefTable = res.getDynamicRefTableForCookie(assetsCookie);
+ auto noop_destructor = [](const DynamicRefTable* /*ref_table */) { };
+ auto dynamicRefTable = std::shared_ptr<const DynamicRefTable>(
+ res.getDynamicRefTableForCookie(assetsCookie), noop_destructor);
Asset* asset = NULL;