diff options
-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; } |