Qt: release scaled pixmaps from memory if possible

This commit is contained in:
Megamouse 2021-09-08 01:00:49 +02:00
parent 4d70c483b2
commit 2fb68bfc03
3 changed files with 16 additions and 5 deletions

View file

@ -114,6 +114,11 @@ movie_item* game_list_grid::addItem(const game_info& app, const QString& name, c
painter.drawImage(offset, bg_img);
painter.drawPixmap(offset, app->pxmap);
if (!app->has_hover_gif)
{
app->pxmap = {};
}
if (movie)
{
movie->stop();