Skip to content

Commit ef2a278

Browse files
committed
Fix review issues
1 parent a17f95f commit ef2a278

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

extensions/ImGui/src/ImGui/ImGuiPresenter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ bool ImGuiPresenter::addRenderLoop(std::string_view id, std::function<void()> fu
560560
auto& imLoop = iter->second;
561561
imLoop.func = std::move(func);
562562
#if defined(AX_PLATFORM_GLFW)
563+
AX_SAFE_DELETE(imLoop.tracker);
563564
imLoop.tracker = tracker;
564565
#endif
565566

extensions/ImGui/src/ImGui/ImGuiPresenter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class ImGuiPresenter
181181
struct ImGuiLoop
182182
{
183183
#if defined(AX_PLATFORM_GLFW)
184-
ImGuiEventTracker* tracker;
184+
ImGuiEventTracker* tracker{nullptr};
185185
#endif
186186
std::function<void()> func;
187187
bool removing = false;

0 commit comments

Comments
 (0)