mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Backends: OSX: Remove notification observer when shutting down. (#8331)
This commit is contained in:
parent
aa23f3801b
commit
aa1b4ea861
2 changed files with 3 additions and 0 deletions
|
|
@ -29,6 +29,7 @@
|
||||||
|
|
||||||
// CHANGELOG
|
// CHANGELOG
|
||||||
// (minor and older changes stripped away, please see git history for details)
|
// (minor and older changes stripped away, please see git history for details)
|
||||||
|
// 2025-01-20: Removed notification observer when shutting down. (#8331)
|
||||||
// 2024-08-22: moved some OS/backend related function pointers from ImGuiIO to ImGuiPlatformIO:
|
// 2024-08-22: moved some OS/backend related function pointers from ImGuiIO to ImGuiPlatformIO:
|
||||||
// - io.GetClipboardTextFn -> platform_io.Platform_GetClipboardTextFn
|
// - io.GetClipboardTextFn -> platform_io.Platform_GetClipboardTextFn
|
||||||
// - io.SetClipboardTextFn -> platform_io.Platform_SetClipboardTextFn
|
// - io.SetClipboardTextFn -> platform_io.Platform_SetClipboardTextFn
|
||||||
|
|
@ -497,6 +498,7 @@ void ImGui_ImplOSX_Shutdown()
|
||||||
ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData();
|
ImGui_ImplOSX_Data* bd = ImGui_ImplOSX_GetBackendData();
|
||||||
IM_ASSERT(bd != nullptr && "No platform backend to shutdown, or already shutdown?");
|
IM_ASSERT(bd != nullptr && "No platform backend to shutdown, or already shutdown?");
|
||||||
|
|
||||||
|
[[NSNotificationCenter defaultCenter] removeObserver:bd->Observer];
|
||||||
bd->Observer = nullptr;
|
bd->Observer = nullptr;
|
||||||
if (bd->Monitor != nullptr)
|
if (bd->Monitor != nullptr)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@ Other changes:
|
||||||
SDL_Color. (#8327) [@dkosmari]
|
SDL_Color. (#8327) [@dkosmari]
|
||||||
- Backends: DirectX12: Texture upload use the command queue provided in
|
- Backends: DirectX12: Texture upload use the command queue provided in
|
||||||
ImGui_ImplDX12_InitInfo instead of creating its own.
|
ImGui_ImplDX12_InitInfo instead of creating its own.
|
||||||
|
- Backends: OSX: Removed notification observer when shutting down. (#8331) [@jrachele]
|
||||||
|
|
||||||
|
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue