diff options
author | Corentin Noël <corentin.noel@collabora.com> | 2019-06-18 11:51:11 +0200 |
---|---|---|
committer | Corentin Noël <corentin.noel@collabora.com> | 2019-06-18 11:51:11 +0200 |
commit | c5f717445460237d131a3a2d40285697e4560ac6 (patch) | |
tree | ad2f8b052ae0568be5c3f2904ac6c86f0952babb | |
parent | 11367214b34d8b76e7933626a245524141f3291e (diff) | |
download | glade-c5f717445460237d131a3a2d40285697e4560ac6.tar.gz |
Fix two memory leaks discovered with valgrind
-rw-r--r-- | gladeui/glade-builtins.c | 2 | ||||
-rw-r--r-- | gladeui/glade-widget-adaptor.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gladeui/glade-builtins.c b/gladeui/glade-builtins.c index 74721dd7..cdc98ac6 100644 --- a/gladeui/glade-builtins.c +++ b/gladeui/glade-builtins.c @@ -244,7 +244,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS g_slist_free (gsi_list_list); stock_prefixs_done = TRUE; - g_slist_free (stock_list); + g_slist_free_full (stock_list, g_free); return values; } diff --git a/gladeui/glade-widget-adaptor.c b/gladeui/glade-widget-adaptor.c index 992e7959..dfc29d5a 100644 --- a/gladeui/glade-widget-adaptor.c +++ b/gladeui/glade-widget-adaptor.c @@ -2586,6 +2586,7 @@ generate_type (const char *name, const char *parent_name) retval = g_type_register_static (parent_type, (new_name) ? new_name : name, type_info, 0); + g_free (type_info); g_free (new_name); return retval; |