diff options
author | Ariya Hidayat <ariya.hidayat@trolltech.com> | 2009-03-18 18:49:55 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@trolltech.com> | 2009-04-07 18:23:24 (GMT) |
commit | dfd72ab3c8e519f2c08b9a85e1309f8e06a5dd45 (patch) | |
tree | 36f193fc7e28be8d1d62a6d69e4a7825e9f05e98 /src/gui/graphicsview | |
parent | 76b8d22cee1d0a12de30f2c9d49ead5625b5122f (diff) | |
download | Qt-dfd72ab3c8e519f2c08b9a85e1309f8e06a5dd45.zip Qt-dfd72ab3c8e519f2c08b9a85e1309f8e06a5dd45.tar.gz Qt-dfd72ab3c8e519f2c08b9a85e1309f8e06a5dd45.tar.bz2 |
Fixes: 'delete' always works even with null pointer.
Diffstat (limited to 'src/gui/graphicsview')
-rw-r--r-- | src/gui/graphicsview/qgraphicsscene.cpp | 3 |
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 |