/* SPDX-FileCopyrightText: 2024 Blender Authors * * SPDX-License-Identifier: GPL-2.0-or-later */ /** \file * \ingroup bke */ #include "BKE_report.hh" #include "BKE_wm_runtime.hh" #include "BLI_ghash.h" #include "BLI_listbase.h" namespace blender::bke { WindowManagerRuntime::WindowManagerRuntime() { BKE_reports_init(&this->reports, RPT_STORE); } WindowManagerRuntime::~WindowManagerRuntime() { BKE_reports_free(&this->reports); BLI_freelistN(&this->notifier_queue); if (this->notifier_queue_set) { BLI_gset_free(this->notifier_queue_set, nullptr); } } WindowRuntime::~WindowRuntime() { #ifdef WITH_INPUT_IME BLI_assert(this->ime_data == nullptr); #endif /** The event_queue should be freed when the window is freed. */ BLI_assert(BLI_listbase_is_empty(&this->event_queue)); } } // namespace blender::bke