SWDEV-333237 - Release command before queing a marker

Change-Id: I5343c4b7ade2dc68efa7454a919a6657726c45d3
This commit is contained in:
Saleel Kudchadker
2022-04-21 15:57:44 -07:00
والد 15f1632dfa
کامیت ddfd919a62
@@ -113,7 +113,11 @@ void HostQueue::finish() {
return;
}
}
if (nullptr == command || !isCacheFlushed) {
if (nullptr != command) {
command->release();
}
// Send a finish to make sure we finished all commands
command = new Marker(*this, false);
if (command == NULL) {