/*
 * Copyright (C) 2023 Intel Corporation
 *
 * SPDX-License-Identifier: MIT
 *
 */

#include "level_zero/core/source/driver/driver_handle_imp.h"
#include "level_zero/sysman/source/sysman_driver_handle_imp.h"

namespace L0 {

void globalDriverTeardown() {
    if (GlobalDriver != nullptr) {
        delete GlobalDriver;
        GlobalDriver = nullptr;
    }
    if (Sysman::GlobalSysmanDriver != nullptr) {
        delete Sysman::GlobalSysmanDriver;
        Sysman::GlobalSysmanDriver = nullptr;
    }
}
} // namespace L0
