Fix memory leak in CachePlotView
MODIFY
src/cachesim/cacheplotview.cpp
src/cachesim/cacheplotview.cpp
@@ -55,7 +55,7 @@ void MarkerObjects::updateCoordinateValues(const QPointF& pos) {
coordY->setText(QString("Value: %1").arg(pos.y()));
}
-CachePlotView::CachePlotView(QWidget* parent) : QGraphicsView(new QGraphicsScene, parent) {
+CachePlotView::CachePlotView(QWidget* parent) : QGraphicsView(parent) {
setMouseTracking(true);
}

MODIFY
src/cachesim/cacheplotwidget.cpp
src/cachesim/cacheplotwidget.cpp
@@ -32,6 +32,7 @@ namespace Ripes {
CachePlotWidget::CachePlotWidget(QWidget* parent) : QWidget(parent), m_ui(new Ui::CachePlotWidget) {
m_ui->setupUi(this);
+ m_ui->plotView->setScene(new QGraphicsScene(this));
setWindowTitle("Cache Access Statistics");
setupEnumCombobox(m_ui->num, s_cacheVariableStrings);

Fix memory leak in CachePlotView