mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +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);
|
cache.setPixel(x, y, pixel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XDestroyImage(image);
|
||||||
|
|
||||||
cache = cache.scaledToWidth(width(), Qt::SmoothTransformation);
|
QImage cacheScaled = cache.scaledToWidth(width(), Qt::SmoothTransformation);
|
||||||
|
m_cache = new QImage(cacheScaled);
|
||||||
m_cache = new QImage(cache);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user