Description
When using QTJSC::DateInstance::msToGregorianDateTime implicitly by calling Date.getUTCHours in QML JavaScript, memory is not freed causing memory to grow for ~40 seconds.
The following is used in examples/declarative/clocks/Clock.qml of the kinetic/declarative repository;
function timeChanged() { var date = new Date; hours = shift ? date.getUTCHours() + Math.floor(clock.shift) : date.getHours() if ( hours < 7 || hours > 19 ) night = true; else night = false minutes = shift ? date.getUTCMinutes() + ((clock.shift % 1) * 60) : date.getMinutes() seconds = date.getUTCSeconds(); } Timer { interval: 100; running: true; repeat: true; triggeredOnStart: true onTriggered: clock.timeChanged() }