summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2023-04-21 14:32:56 +0200
committerDave Davenport <qball@gmpclient.org>2023-04-21 14:32:56 +0200
commit7328ac98027cbd449d44c640b207013242108d57 (patch)
tree6473f48ba21f23ddada73075422bddd9becb2b6a
parentb68f64ccee0ddcca4b530a30e40079883dced8bc (diff)
[IconFetcher] Fix small memory leak.
-rw-r--r--source/rofi-icon-fetcher.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/rofi-icon-fetcher.c b/source/rofi-icon-fetcher.c
index f4f9086d..120ebee1 100644
--- a/source/rofi-icon-fetcher.c
+++ b/source/rofi-icon-fetcher.c
@@ -333,9 +333,10 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
const char *ext = g_strrstr(sentry->entry->name, ".");
if (ext) {
const char *exts2[2] = {ext, NULL};
- icon_path = helper_get_theme_path(sentry->entry->name, exts2);
+ icon_path = icon_path_ =
+ helper_get_theme_path(sentry->entry->name, exts2);
}
- if (icon_path == NULL) {
+ if (icon_path_ == NULL) {
sentry->query_done = TRUE;
rofi_view_reload();
return;