diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2011-07-29 10:35:58 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-29 02:47:11 +0200 |
commit | 2b9cccc859edb271f84728350d1a7666bbba111f (patch) | |
tree | 1e0a37ac0c34cb2383095fa761453773695a4f3b /src/declarative | |
parent | b1200f446e611f167a712eb877d60b2b3a9444e6 (diff) |
Code cleanup
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>
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/particles/qsgimageparticle.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
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; } |