Code cleanup
authorAlan Alpert <alan.alpert@nokia.com>
Fri, 29 Jul 2011 00:35:58 +0000 (10:35 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 29 Jul 2011 00:47:11 +0000 (02:47 +0200)
Change-Id: I97ecc41fcb7255981c863996064cf6d6bae7ebbb
Reviewed-on: http://codereview.qt.nokia.com/2356
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/declarative/particles/qsgimageparticle.cpp

index 52e94b1..cf1f48e 100644 (file)
@@ -73,14 +73,10 @@ public:
 
     ~UltraMaterial()
     {
-        if (texture)
-            delete texture;
-        if (colortable)
-            delete colortable;
-        if (sizetable)
-            delete sizetable;
-        if (opacitytable)
-            delete opacitytable;
+        delete texture;
+        delete colortable;
+        delete sizetable;
+        delete opacitytable;
     }
 
     virtual QSGMaterialType *type() const { static QSGMaterialType type; return &type; }