fix: avoid double free when wddm initialization fails

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2023-10-05 10:47:44 +00:00
committed by Compute-Runtime-Automation
parent 90e24a433d
commit 038c287656
5 changed files with 18 additions and 3 deletions

View File

@@ -87,6 +87,7 @@ bool Wddm::init() {
rootDeviceEnvironment.osInterface = std::make_unique<OSInterface>();
rootDeviceEnvironment.osInterface->setDriverModel(std::unique_ptr<DriverModel>(this));
}
if (!queryAdapterInfo()) {
return false;
}