diff --git a/main.cpp b/main.cpp index f767f54adb..b92bee6f51 100644 --- a/main.cpp +++ b/main.cpp @@ -51,6 +51,7 @@ along with this program. If not, see . #include #include #include +#include #include @@ -404,6 +405,8 @@ KDE_EXPORT int kdemain(int argc, char * argv[]) } } + KWorkSpace::trimMalloc(); + Display* dpy = XOpenDisplay(NULL); if (!dpy) { fprintf(stderr, "%s: FATAL ERROR while trying to open display %s\n",