1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

Fixed benign memory leak

This commit is contained in:
Martin Tůma 2017-01-02 09:42:34 +01:00
parent f61488fcfa
commit ea178d1acb

View File

@ -22,7 +22,7 @@
GraphView::GraphView(QWidget *parent) GraphView::GraphView(QWidget *parent)
: QGraphicsView(parent) : QGraphicsView(parent)
{ {
_scene = new QGraphicsScene(); _scene = new QGraphicsScene(this);
setScene(_scene); setScene(_scene);
setViewportUpdateMode(QGraphicsView::FullViewportUpdate); setViewportUpdateMode(QGraphicsView::FullViewportUpdate);