1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

[IconFetcher] Fix small memory leak.

This commit is contained in:
Dave Davenport 2023-04-21 14:32:56 +02:00
parent b68f64ccee
commit 7328ac9802

View file

@ -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;