SWDEV-1 - Some 'delete' clean up
Change-Id: I02564f0f0e349375bde1471e9f82df268703367b
[ROCm/clr commit: 73967c3b17]
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user