##// END OF EJS Templates
Fix memory leak in opengl series handling in qml...
Miikka Heikkinen -
r2827:2dcfcd4a9f69
parent child
Show More
@@ -307,10 +307,14 void DeclarativeRenderNode::cleanXYSeriesResources(const QXYSeries *series)
307 {
307 {
308 if (series) {
308 if (series) {
309 delete m_seriesBufferMap.take(series);
309 delete m_seriesBufferMap.take(series);
310 delete m_xyDataMap.take(series);
310 } else {
311 } else {
311 foreach (QOpenGLBuffer *buffer, m_seriesBufferMap.values())
312 foreach (QOpenGLBuffer *buffer, m_seriesBufferMap.values())
312 delete buffer;
313 delete buffer;
313 m_seriesBufferMap.clear();
314 m_seriesBufferMap.clear();
315 foreach (GLXYSeriesData *data, m_xyDataMap.values())
316 delete data;
317 m_xyDataMap.clear();
314 }
318 }
315 }
319 }
316
320
General Comments 0
You need to be logged in to leave comments. Login now