mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-10 23:05:59 +01:00
no leakeroni
This commit is contained in:
parent
1d4e51876d
commit
d13189d8f6
1 changed files with 4 additions and 0 deletions
|
@ -418,6 +418,8 @@ void CCursorManager::SXCursorManager::loadTheme(const std::string& name, int siz
|
|||
|
||||
themeLoaded = true;
|
||||
|
||||
XcursorImageDestroy(img);
|
||||
|
||||
// gather as many shapes as we can find.
|
||||
cursors.clear();
|
||||
|
||||
|
@ -450,5 +452,7 @@ void CCursorManager::SXCursorManager::loadTheme(const std::string& name, int siz
|
|||
std::memcpy(xcursor->pixels.data(), xImage->pixels, xImage->width * xImage->height * sizeof(uint32_t));
|
||||
|
||||
cursors.emplace(std::string{shape}, xcursor);
|
||||
|
||||
XcursorImageDestroy(xImage);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue