From f64782d9a5a4afa28fd39ca112f57fce9d8f17fc Mon Sep 17 00:00:00 2001 From: Andrey Skvortsov Date: Wed, 28 May 2025 01:04:51 +0300 Subject: [PATCH] main: fix memleak, when reading g_settings --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index a7e92a0..c67db08 100644 --- a/src/main.c +++ b/src/main.c @@ -1422,6 +1422,7 @@ activate(GtkApplication *app, gpointer data) g_settings_set_string(settings, "postprocessor", setting_postproc); printf("Initialized postprocessor to %s\n", setting_postproc); } + free(setting_postproc); // Find all postprocessors for the settings list mp_process_find_all_processors(setting_postprocessor_list);