From e1531581bb0f685c4aad43da3c488678e0d87216 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 04 Nov 2017 21:54:34 -0400 Subject: about:profiles: Free the color string of each displayed profile --- (limited to 'src/schemes') diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c index b7797d6..4439220 100644 --- a/src/schemes/about/profiles.c +++ b/src/schemes/about/profiles.c @@ -43,7 +43,8 @@ generate_div(MqProfiles *profiles, gchar *id) gchar *save_str; gchar *div; - /* Freed by mq_html_container(). */ + /* name is freed by the mq_html_container() call to generate the name + * . */ if (id) { name = mq_profiles_get_name(profiles, id); color = mq_profiles_get_color(profiles, id); @@ -77,6 +78,8 @@ generate_div(MqProfiles *profiles, gchar *id) g_free(delete_str); g_free(save_str); + g_free(color); + return div; } -- cgit v0.9.1