From 70f73826808d78c22f197196d3cdda1b57c98788 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 11 Oct 2020 09:59:49 +0200 Subject: [PATCH] Fixed a memory leak for GuiInfoPopup notifications. --- es-app/src/guis/GuiInfoPopup.cpp | 2 ++ es-core/src/Window.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/es-app/src/guis/GuiInfoPopup.cpp b/es-app/src/guis/GuiInfoPopup.cpp index 1cc64d49b..632cf78ce 100644 --- a/es-app/src/guis/GuiInfoPopup.cpp +++ b/es-app/src/guis/GuiInfoPopup.cpp @@ -71,6 +71,8 @@ GuiInfoPopup::GuiInfoPopup( GuiInfoPopup::~GuiInfoPopup() { + delete mGrid; + delete mFrame; } void GuiInfoPopup::render(const Transform4x4f& /*parentTrans*/) diff --git a/es-core/src/Window.cpp b/es-core/src/Window.cpp index ed39d2004..56cef4987 100644 --- a/es-core/src/Window.cpp +++ b/es-core/src/Window.cpp @@ -50,6 +50,9 @@ Window::~Window() while (peekGui()) delete peekGui(); + if (mInfoPopup) + delete mInfoPopup; + delete mHelp; }