diff options
-rw-r--r-- | src/schemes/about/profiles.c | 5 |
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; } |