~Memtrack: don't delete hw_module_t*

mModule here is from a dlsym from libhardware, so this was crashing
here, if hwservicemanager crashes.

Bug: N/A
Test: N/A
Change-Id: I42aa35df0eafd791465f6e099dc1945bd0f763ea
This commit is contained in:
Steven Moreland 2020-01-23 14:29:29 -08:00
parent 116a7e2ed4
commit d66d0ddaf3

View file

@ -34,9 +34,7 @@ Memtrack::Memtrack(const memtrack_module_t *module) : mModule(module) {
mModule->init(mModule);
}
Memtrack::~Memtrack() {
delete(mModule);
}
Memtrack::~Memtrack() {}
Return<void> Memtrack::getMemory(int32_t pid, MemtrackType type,
getMemory_cb _hidl_cb) {