From 2b9cccc859edb271f84728350d1a7666bbba111f Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Fri, 29 Jul 2011 10:35:58 +1000 Subject: Code cleanup Change-Id: I97ecc41fcb7255981c863996064cf6d6bae7ebbb Reviewed-on: http://codereview.qt.nokia.com/2356 Reviewed-by: Qt Sanity Bot Reviewed-by: Michael Brasser --- src/declarative/particles/qsgimageparticle.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/declarative') diff --git a/src/declarative/particles/qsgimageparticle.cpp b/src/declarative/particles/qsgimageparticle.cpp index 52e94b169a..cf1f48e036 100644 --- a/src/declarative/particles/qsgimageparticle.cpp +++ b/src/declarative/particles/qsgimageparticle.cpp @@ -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; } -- cgit v1.2.3