[Libreoffice-commits] online.git: kit/Kit.cpp
Michael Meeks
michael.meeks at collabora.com
Fri Apr 7 21:43:36 UTC 2017
kit/Kit.cpp | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 9ea75f974c1ae1ee70e51ba87443e475f7fbd319
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Fri Apr 7 22:33:01 2017 +0100
Re-allocate vector storage to compressed size.
diff --git a/kit/Kit.cpp b/kit/Kit.cpp
index 6717c677..121f20e8 100644
--- a/kit/Kit.cpp
+++ b/kit/Kit.cpp
@@ -373,6 +373,7 @@ class PngCache
{
if (hash)
{
+ newEntry._data->shrink_to_fit();
_cache.emplace(hash, newEntry);
_cacheSize += newEntry._data->size();
}
More information about the Libreoffice-commits
mailing list