@@ -307,10 +307,14 void DeclarativeRenderNode::cleanXYSeriesResources(const QXYSeries *series) | |||
|
307 | 307 | { |
|
308 | 308 | if (series) { |
|
309 | 309 | delete m_seriesBufferMap.take(series); |
|
310 | delete m_xyDataMap.take(series); | |
|
310 | 311 | } else { |
|
311 | 312 | foreach (QOpenGLBuffer *buffer, m_seriesBufferMap.values()) |
|
312 | 313 | delete buffer; |
|
313 | 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