Address cppcheck finding
This commit is contained in:
1 parent
4d4729c5d0
commit
0e905e988b
1 file changed
+1
-1
@@ -32,7 +32,7 @@ void logSyncMemSnapshot(const char* stage) {
|
|||||||
// Frees renderer-owned caches right before network work.
|
// Frees renderer-owned caches right before network work.
|
||||||
// Why: TLS handshake needs a large contiguous block, and font cache memory can
|
// Why: TLS handshake needs a large contiguous block, and font cache memory can
|
||||||
// increase fragmentation even when total free heap looks acceptable.
|
// increase fragmentation even when total free heap looks acceptable.
|
||||||
void trimMemoryBeforeTls(GfxRenderer& renderer) {
|
void trimMemoryBeforeTls(const GfxRenderer& renderer) {
|
||||||
if (auto* cacheManager = renderer.getFontCacheManager()) {
|
if (auto* cacheManager = renderer.getFontCacheManager()) {
|
||||||
cacheManager->clearCache();
|
cacheManager->clearCache();
|
||||||
cacheManager->resetStats();
|
cacheManager->resetStats();
|
||||||
|
|||||||
Reference in new issue
Block a user