summaryrefslogtreecommitdiff
path: root/libunwindstack/include/unwindstack/JitDebug.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2019-01-22 18:51:07 -0800
committerChristopher Ferris <cferris@google.com>2019-01-23 09:49:28 -0800
commit1d44cdeea9f4b2b83c3a2364e7850fba41a98c52 (patch)
treeff7c09de391238cf07db0ec79a93d1b96c935615 /libunwindstack/include/unwindstack/JitDebug.h
parentd61b637aca1c5c9ddc8cf5e90c3829ea3458ba05 (diff)
downloadunwinding-1d44cdeea9f4b2b83c3a2364e7850fba41a98c52.tar.gz
Fix memory leak in UnwinderFromPid object.
Actually make the destructor virtual so that objects in UnwinderFromPid get freed. Also, explicitly make the DexFiles and JitDebug destructors virtual. Bug: 123099840 Test: Ran UnwindTest.local_from_pid thousands of times. Change-Id: I8bf11c0eb3587fa82f5f14f4723ea5c91da0fd46
Diffstat (limited to 'libunwindstack/include/unwindstack/JitDebug.h')
-rw-r--r--libunwindstack/include/unwindstack/JitDebug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwindstack/include/unwindstack/JitDebug.h b/libunwindstack/include/unwindstack/JitDebug.h
index f64b04f..8b7b4b5 100644
--- a/libunwindstack/include/unwindstack/JitDebug.h
+++ b/libunwindstack/include/unwindstack/JitDebug.h
@@ -38,7 +38,7 @@ class JitDebug : public Global {
public:
explicit JitDebug(std::shared_ptr<Memory>& memory);
JitDebug(std::shared_ptr<Memory>& memory, std::vector<std::string>& search_libs);
- ~JitDebug();
+ virtual ~JitDebug();
Elf* GetElf(Maps* maps, uint64_t pc);