main: fix memleak, when reading g_settings

This commit is contained in:
Andrey Skvortsov
2025-05-28 01:04:51 +03:00
committed by Martijn Braam
parent 9567f00e01
commit f64782d9a5

View File

@@ -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);