mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 14:15:58 +01:00
xcursor: fix NULL deref on malloc() fail
This commit is contained in:
parent
b06d58fa8b
commit
e16b0068a7
1 changed files with 5 additions and 3 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue