qt5base-lts/tests/auto/corelib/plugin
Thiago Macieira cafb02911a Make sure that the reference count for plugins is kept correctly
For systems where the Unix signature checker isn't enabled (read: Mac
and Windows), QPluginLoader must actually load the plugin to query for
the metadata. On Mac it even tried to keep the library loaded to avoid
unloading and reloading again when the user calls load().

However, that plus the fact that it was calling load_sys() (on Mac)
meant that it would bypass the reference count checking. And on all
Unix, if a library-that-wasnt-a-plugin was already loaded by way of a
QLibrary, it would have an effect of unloading said library.

So remove the "caching" of the library. We should instead invest time to
write a proper Mach-O binary decoder.

Task-number: QTBUG-29776
Change-Id: Iebbddabe60047aafedeced21f26a170f59656757
Reviewed-by: Liang Qi <liang.qi@digia.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com>
2013-02-27 07:09:18 +01:00
..
qfactoryloader Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qlibrary Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qplugin Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qpluginloader Make sure that the reference count for plugins is kept correctly 2013-02-27 07:09:18 +01:00
quuid Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev 2013-01-23 22:12:54 +01:00
plugin.pro Fix a crash in QFactoryLoader 2012-03-29 13:58:13 +02:00