From 033f7de03ed83cfa68436660e6354cb94452ee25 Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Thu, 10 Sep 2009 14:29:24 +1000 Subject: Best to delete pointer before zeroing it. --- src/declarative/fx/qfxloader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarative/fx/qfxloader.cpp b/src/declarative/fx/qfxloader.cpp index e75ce6d..668faa4 100644 --- a/src/declarative/fx/qfxloader.cpp +++ b/src/declarative/fx/qfxloader.cpp @@ -120,8 +120,8 @@ void QFxLoader::setSource(const QUrl &url) delete d->component; d->component = 0; } - d->item = 0; delete d->item; + d->item = 0; d->source = url; if (d->source.isEmpty()) { -- cgit v0.12