summaryrefslogtreecommitdiffstats
path: root/ScreensPanel.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2023-08-30 17:37:31 +0200
committerChristian Göttsche <cgzones@googlemail.com>2023-08-30 17:37:31 +0200
commita055c18a82500c31684fb1e59c5500f3fba94c9b (patch)
tree518638e62cf1b31d1d739333085b7b71abd16f83 /ScreensPanel.c
parent8f0fc2ce6a6e90685749892498af3cdbd87f43f1 (diff)
Fix leak in ScreensPanel
Diffstat (limited to 'ScreensPanel.c')
-rw-r--r--ScreensPanel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ScreensPanel.c b/ScreensPanel.c
index d0038809..1bf557a3 100644
--- a/ScreensPanel.c
+++ b/ScreensPanel.c
@@ -48,7 +48,6 @@ static const char* const DynamicFunctions[] = {" ", "Rename", " ", "
static void ScreensPanel_delete(Object* object) {
Panel* super = (Panel*) object;
- ScreensPanel* this = (ScreensPanel*) object;
/* do not delete screen settings still in use */
int n = Panel_size(super);
@@ -57,7 +56,7 @@ static void ScreensPanel_delete(Object* object) {
item->ss = NULL;
}
- free(this);
+ Panel_delete(object);
}
static HandlerResult ScreensPanel_eventHandlerRenaming(Panel* super, int ch) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy