summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2019-06-18 11:51:11 +0200
committerCorentin Noël <corentin.noel@collabora.com>2019-06-18 11:51:11 +0200
commitc5f717445460237d131a3a2d40285697e4560ac6 (patch)
treead2f8b052ae0568be5c3f2904ac6c86f0952babb
parent11367214b34d8b76e7933626a245524141f3291e (diff)
downloadglade-c5f717445460237d131a3a2d40285697e4560ac6.tar.gz
Fix two memory leaks discovered with valgrind
-rw-r--r--gladeui/glade-builtins.c2
-rw-r--r--gladeui/glade-widget-adaptor.c1
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;