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:
parent
b68f64ccee
commit
7328ac9802
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue