Author: mherger Date: Fri Sep 9 06:55:22 2011 New Revision: 9507 URL: http://svn.slimdevices.com/jive?rev=9507&view=rev Log: Bug: 15945 Description: force garbage collection when slideshow is running. Resizing larger images might cause memory issues.
Modified: 7.6/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageViewerApplet.lua Modified: 7.6/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageViewerApplet.lua URL: http://svn.slimdevices.com/jive/7.6/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageViewerApplet.lua?rev=9507&r1=9506&r2=9507&view=diff ============================================================================== --- 7.6/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageViewerApplet.lua (original) +++ 7.6/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageViewerApplet.lua Fri Sep 9 06:55:22 2011 @@ -17,7 +17,7 @@ -- stuff we use -local ipairs, tostring = ipairs, tostring +local ipairs, tostring, collectgarbage = ipairs, tostring, collectgarbage local os = require("os") local oo = require("loop.simple") @@ -867,7 +867,12 @@ end ) + log:debug("image rendering done") + + -- free memory as quickly as possible - resizing large images might have consumed a lot of it + collectgarbage("collect") + self.isRendering = false self.task:removeTask() end _______________________________________________ Jive-checkins mailing list Jive-checkins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/jive-checkins