From 68bbd48da6dbaccc50dcb6d5ac4da1f9a3ff9167 Mon Sep 17 00:00:00 2001 From: nekobit Date: Fri, 13 May 2022 01:33:22 +0000 Subject: [PATCH] Only show hastags graph if constructed\n\nhappens on Pleroma FossilOrigin-Name: 0f1d280518d0fdf5901fb503e01326d9399cfe438b6b354f9808161eace2fcaa --- src/search.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index cc4d418..3a41034 100644 --- a/src/search.c +++ b/src/search.c @@ -172,7 +172,9 @@ void content_search_hashtags(struct session* ssn, mastodont_t* api, char** data) results.tags_len, 14, NULL); - tags_graph = construct_bar_graph_container(tags_bars, NULL); + if (tags_bars) + tags_graph = construct_bar_graph_container(tags_bars, NULL); + if (tags_bars) free(tags_bars); } else