~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:
parent
116a7e2ed4
commit
d66d0ddaf3
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue