summaryrefslogtreecommitdiffstats
path: root/src/schemes
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-04 21:54:34 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-04 22:00:12 (EDT)
commite1531581bb0f685c4aad43da3c488678e0d87216 (patch)
tree06c6ae4baeb38a8ce52ad99c2f4108fbf8c3ea4e /src/schemes
parent1cdc5bb1e7c50bdf6875444ac586a0e272e5756f (diff)
downloadmarquee-e1531581bb0f685c4aad43da3c488678e0d87216.zip
marquee-e1531581bb0f685c4aad43da3c488678e0d87216.tar.gz
marquee-e1531581bb0f685c4aad43da3c488678e0d87216.tar.bz2
about:profiles: Free the color string of each displayed profile
Diffstat (limited to 'src/schemes')
-rw-r--r--src/schemes/about/profiles.c5
1 files changed, 4 insertions, 1 deletions
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
+ * <span>. */
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;
}