summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/graphicsview/qgraphicsscene.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/graphicsview/qgraphicsscene.cpp b/src/gui/graphicsview/qgraphicsscene.cpp
index 4070f11..dd67067 100644
--- a/src/gui/graphicsview/qgraphicsscene.cpp
+++ b/src/gui/graphicsview/qgraphicsscene.cpp
@@ -363,8 +363,7 @@ QGraphicsScenePrivate::QGraphicsScenePrivate()
}
QGraphicsScenePrivate::~QGraphicsScenePrivate()
{
- if (index)
- delete index;
+ delete index;
}
/*!
\internal