--- a/src/XImlib2Background.cpp 2005-11-10 21:08:55.000000000 -0200
+++ b/src/XImlib2Background.cpp 2013-07-20 11:14:43.000000000 -0300
@@ -311,6 +311,12 @@ void XImlib2Background::InitSpareRoot(Wi
xContainer->widthOfScreen(), xContainer->heightOfScreen(), 1);
XDestroyWindow(xContainer->getDisplay(), tmp);
imlib_context_set_drawable(xContainer->getRootWindow());
+
+ // Just a temporary hack to fix anomalous memory consumption (AMC).
+ if (spareRoot) {
+ cout << "[idesk] Debug: AMC hack." << endl;
+ imlib_free_image_and_decache();
+ }
}
Window XImlib2Background::createWindow()