From 744feb116f09e35982870e8d536c6e43f7e98501 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Thu, 22 Apr 2021 20:46:40 -0700 Subject: [PATCH] mGUI: Fix some small memory leaks --- src/feature/gui/gui-config.c | 1 + src/feature/gui/remap.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/feature/gui/gui-config.c b/src/feature/gui/gui-config.c index f814cabc9..63a4397a6 100644 --- a/src/feature/gui/gui-config.c +++ b/src/feature/gui/gui-config.c @@ -380,4 +380,5 @@ void mGUIShowConfig(struct mGUIRunner* runner, struct GUIMenuItem* extra, size_t } } } + GUIMenuItemListDeinit(&menu.items); } diff --git a/src/feature/gui/remap.c b/src/feature/gui/remap.c index 4238454b6..d09c0ca51 100644 --- a/src/feature/gui/remap.c +++ b/src/feature/gui/remap.c @@ -84,4 +84,5 @@ void mGUIRemapKeys(struct GUIParams* params, struct mInputMap* map, const struct // TODO: Open remap menu } } + GUIMenuItemListDeinit(&menu.items); }