Grisu-NOE / mobile-app

This project aims to build a modern mobile web-app based on the framework Ionic to improve the functionality of http://mobile.leitstelle122.at/.
MIT License
25 stars 11 forks source link

Memory leak in statistics #67

Closed ajgassner closed 9 years ago

ajgassner commented 9 years ago

Following code never gets called in statisticsTabController when leaving the view:

angular.forEach(chartInstances, function(instance) {
    if (instance !== null) {
        instance.destroy();
    }
});

destroy chart instances before leaving the view