Przeglądaj źródła

Fixed small memory leak.

grunfink 6 miesięcy temu
rodzic
commit
8ce4bd725d
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      html.c

+ 2 - 2
html.c

@@ -3710,7 +3710,7 @@ xs_str *html_timeline(snac *user, const xs_list *list, int read_only,
 xs_html *html_people_list(snac *user, xs_list *list, const char *header, const char *t, const char *proxy, int do_count)
 {
     xs_html *snac_posts;
-    const char *header_cnt;
+    xs *header_cnt;
     if (do_count)
         header_cnt = xs_fmt("%s - %d\n", header, xs_list_len(list));
     else
@@ -3719,7 +3719,7 @@ xs_html *html_people_list(snac *user, xs_list *list, const char *header, const c
     xs_html *people = xs_html_tag("div",
         xs_html_tag("h2",
             xs_html_attr("class", "snac-header"),
-            xs_html_raw(header_cnt)),
+            xs_html_text(header_cnt)),
         snac_posts = xs_html_tag("details",
                 xs_html_attr("open", NULL),
                 xs_html_tag("summary",