mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
bugfix: window preview memory leak
This commit is contained in:
parent
dd11cf57d1
commit
3aab5936a1
@ -72,10 +72,11 @@ void WindowPreview::updateCache()
|
||||
cache.setPixel(x, y, pixel);
|
||||
}
|
||||
}
|
||||
|
||||
XDestroyImage(image);
|
||||
|
||||
cache = cache.scaledToWidth(width(), Qt::SmoothTransformation);
|
||||
|
||||
m_cache = new QImage(cache);
|
||||
QImage cacheScaled = cache.scaledToWidth(width(), Qt::SmoothTransformation);
|
||||
m_cache = new QImage(cacheScaled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user