no leakeroni

This commit is contained in:
Vaxry 2024-07-08 15:28:36 +02:00
parent 1d4e51876d
commit d13189d8f6

View file

@ -418,6 +418,8 @@ void CCursorManager::SXCursorManager::loadTheme(const std::string& name, int siz
themeLoaded = true; themeLoaded = true;
XcursorImageDestroy(img);
// gather as many shapes as we can find. // gather as many shapes as we can find.
cursors.clear(); 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)); std::memcpy(xcursor->pixels.data(), xImage->pixels, xImage->width * xImage->height * sizeof(uint32_t));
cursors.emplace(std::string{shape}, xcursor); cursors.emplace(std::string{shape}, xcursor);
XcursorImageDestroy(xImage);
} }
} }