qml: Fix potential memory leak in the file selector
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Sun, 20 Jul 2014 14:46:28 +0000 (16:46 +0200)
committerHolger Freyther <holger+qt@freyther.de>
Mon, 21 Jul 2014 06:05:57 +0000 (08:05 +0200)
commit23e506fb3ea393e6ed1698923094000d6b640dac
tree2c3df8c112771d3292e19f2df35debd877fbc9ad
parenta62955472b2acd644db46ea194d4fb0bc119150f
qml: Fix potential memory leak in the file selector

The myInstance doesn't seem to be part of a QObject parent/child
relationship and Coverity complained about it. Use a QScopedPointer
to make sure the data will be deleted.

Fixes: CID 10606

Change-Id: I30848ab4d1e621d82281aaa7d6f84e0c2cce4084
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/qml/qqmlfileselector.cpp
src/qml/qml/qqmlfileselector_p.h