qt5base-lts/src
Thiago Macieira f79cc2d66b Fix crash-on-exit with some plugin systems (e.g. sensors)
Don't assume that all entries in the QLibrary global data refer to
libraries have have been loaded. There are three (not two) ways of
getting entries there:

 1) creating a QLibrary
 2) using the static QLibrary::resolve
 3) via plugins

The unload code was meant to handle the first two cases only: libraries
are still loaded at the end of the execution if the static methods were
called or if QLibrary objects were leaked. It didn't handle the case of
plugins being found by the directory scanner in QFactoryLoader but never
loaded.

Note it's possible that this assertion also happened with leaked
QLibrary.

Change-Id: Idcd7a551f96d8fe500cbca682f8014f5122b7584
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2013-02-07 23:32:05 +01:00
..
3rdparty Add the pristine SHA3 reference sources. 2013-02-06 21:23:43 +01:00
angle Fix linking ANGLE on MinGW-w64 64-bit 2012-12-20 14:23:57 +01:00
concurrent Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
corelib Fix crash-on-exit with some plugin systems (e.g. sensors) 2013-02-07 23:32:05 +01:00
dbus Make sure we don't have an operator void(), ICC doesn't like it. 2013-02-02 10:35:22 +01:00
gui Use QPaintEngineEx to decide if font is too big for using the glyph cache 2013-02-07 19:03:33 +01:00
network QtNetwork: give started threads more verbose naming 2013-02-07 09:55:04 +01:00
opengl Use QPaintEngineEx to decide if font is too big for using the glyph cache 2013-02-07 19:03:33 +01:00
platformsupport Introduce a native color dialog for GTK+ 2.x 2013-02-01 19:39:31 +01:00
plugins Add enablers for Android port in QPlatformMenu 2013-02-05 15:03:34 +01:00
printsupport Remove QT_{BEGIN,END}_HEADER macro usage 2013-01-29 01:06:04 +01:00
sql qsql ibase: remove duplicate class definition 2013-02-05 15:09:51 +01:00
testlib Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev 2013-01-29 11:33:35 +01:00
tools Remove left-overs of QT_{BEGIN,END}_HEADERS 2013-01-31 20:08:58 +01:00
widgets Allow overriding subElementRect in QProxyStyle for ItemViewItem 2013-02-05 21:05:14 +01:00
winmain Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
xml Merge "Merge remote-tracking branch 'origin/stable' into dev" into refs/staging/dev 2013-01-29 11:33:35 +01:00
src.pro Add ANGLE as a 3rdparty library to Qt. 2012-10-24 02:29:15 +02:00