fix memory leak of QLibraryPrivate
authorjian liang <jianliang79@gmail.com>
Sun, 22 Jan 2012 14:38:49 +0000 (22:38 +0800)
committerQt by Nokia <qt-info@nokia.com>
Tue, 7 Feb 2012 11:48:06 +0000 (12:48 +0100)
commite09025c1b6d43342e3086b7179109a08f39afd10
tree9f5f4013390accdde391f11cda0c1b126ef0fe3b
parent3722bc5d3cd1b246f1480ea969a8d9cd5e41b1ee
fix memory leak of QLibraryPrivate

this commit is aimed to fix QTBUG-4341. now QFactoryLoaderPrivate's
destructor will call unload() to QLibaryPrivate object which will destory
the plugin's root instance if its refcount reach zero.

Task-number: QTBUG-4341
Change-Id: I3cd3e071b34271bf5802ab09f6c125beda5e9844
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: David Faure <faure@kde.org>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/corelib/plugin/qfactoryloader.cpp