SWDEV-1 - Some 'delete' clean up

Change-Id: I02564f0f0e349375bde1471e9f82df268703367b


[ROCm/clr commit: 73967c3b17]
This commit is contained in:
Jason Tang
2021-09-06 17:55:09 -04:00
committed by Jason Tang
parent 3f5d248508
commit e94aec09bd
13 changed files with 49 additions and 123 deletions
@@ -59,13 +59,8 @@ PalCounterReference::~PalCounterReference() {
// so we have to lock just this queue
amd::ScopedLock lock(gpu_.execution());
if (layout_ != nullptr) {
delete layout_;
}
if (memory_ != nullptr) {
delete memory_;
}
delete layout_;
delete memory_;
if (nullptr != iPerf()) {
iPerf()->Destroy();