xcursor: fix NULL deref on malloc() fail

This commit is contained in:
Kirill Primak 2023-11-19 13:45:05 +03:00
parent b06d58fa8b
commit e16b0068a7

View file

@ -763,9 +763,11 @@ xcursor_load_theme(const char *theme, int size,
continue;
full = xcursor_build_fullname(dir, "cursors", "");
if (full) {
load_all_cursors_from_dir(full, size, load_callback,
user_data);
free(full);
}
if (!inherits) {
full = xcursor_build_fullname(dir, "", "index.theme");