diff --git a/gdump.c b/gdump.c index a72841fe4..b60a5dcee 100644 --- a/gdump.c +++ b/gdump.c @@ -204,6 +204,7 @@ dump_signals (GType type, GOutputStream *out) } goutput_write (out, " \n"); } + g_free (sig_ids); } static void @@ -249,6 +250,8 @@ dump_object_type (GType type, const char *symbol, GOutputStream *out) escaped_printf (out, " \n", g_type_name (itype)); } + g_free (interfaces); + dump_properties (type, out); dump_signals (type, out); goutput_write (out, " \n"); @@ -280,6 +283,8 @@ dump_interface_type (GType type, const char *symbol, GOutputStream *out) escaped_printf (out, " \n", g_type_name (itype)); } + g_free (interfaces); + dump_properties (type, out); dump_signals (type, out); goutput_write (out, " \n"); @@ -379,6 +384,7 @@ dump_fundamental_type (GType type, const char *symbol, GOutputStream *out) escaped_printf (out, " \n", g_type_name (itype)); } + g_free (interfaces); goutput_write (out, " \n"); } @@ -471,6 +477,8 @@ g_irepository_dump (const char *arg, GError **error) input_file = g_file_new_for_path (args[0]); output_file = g_file_new_for_path (args[1]); + g_strfreev (args); + input = g_file_read (input_file, NULL, error); if (input == NULL) return FALSE;