aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-11 14:24:52 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-11 14:24:52 +0200
commite308d77b06405b91885cf6f97c0dc2a1b70679ef (patch)
tree7fb0ed73c20354f3e0ff49ebb199e33ebc3427f7 /src/Body.cpp
parent6b90f55f4dc14b9d39fa0dbf6b82b3c12ccc29d9 (diff)
Improve file saving gui
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index 9494e80..c186b9c 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -335,7 +335,6 @@ namespace QuickMedia {
void Body::clear_cache() {
clear_text_cache();
clear_thumbnails();
- malloc_trim(0);
}
void Body::clear_text_cache() {
@@ -348,6 +347,7 @@ namespace QuickMedia {
void Body::clear_thumbnails() {
item_thumbnail_textures.clear();
+ malloc_trim(0);
}
BodyItem* Body::get_selected() const {