Commit 5049ba03 authored by Morten Welinder's avatar Morten Welinder

Plug leak.

	* src/print-info.c (load_formats): Plug leak.
parent a7fa8a8c
......@@ -2,6 +2,8 @@
* src/dialogs/dialog-analysis-tools.c (tools): Make static.
* src/print-info.c (load_formats): Plug leak.
* src/functions/fn-eng.c (eng_functions_init): Arg fix.
* src/functions/fn-string.c (string_functions_init): Ditto.
* src/functions/fn-stat.c (stat_functions_init): Ditto.
......
......@@ -2,6 +2,8 @@
* src/dialogs/dialog-analysis-tools.c (tools): Make static.
* src/print-info.c (load_formats): Plug leak.
* src/functions/fn-eng.c (eng_functions_init): Arg fix.
* src/functions/fn-string.c (string_functions_init): Ditto.
* src/functions/fn-stat.c (stat_functions_init): Ditto.
......
......@@ -213,8 +213,9 @@ load_formats (void)
for (i = 0; i < format_count; i++){
char *str = g_strdup_printf ("Format-%d", i);
PrintHF *format;
format = load_hf (str, "", "", "");
g_free (str);
hf_formats = g_list_prepend (hf_formats, format);
}
hf_formats = g_list_reverse (hf_formats);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment