qt5base-lts/src
Marc Mutz d7fa2d060a Fix a memleak in QAssociativeIterable::value()
QtMetaTypePrivate::QAssociativeIterableImpl::{find,begin,end}() allocate a new _iterator,
so when they're used outside of the ref-counted world of QAssociativeIterable::const_iterator,
their lifetime needs to be manually managed.

Instead of going to that length, which failed in previous iterations of this patch, implement
value() in terms of (new) find() and let find() operate on const_iterator.

Because of forwards compatibility between patch releases, use (unexported) friend functions
for now with the intention to make them proper member functions come Qt 5.5.

Task-number: QTBUG-41469
Change-Id: I43b21eae0c2fc4c182369e669a8b3b457be68885
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2015-01-04 02:20:32 +01:00
..
3rdparty [ANGLE] Fix compilation with MSVC2013 Update4 2014-12-15 09:19:48 +01:00
android Update gradle build script. 2014-12-18 09:46:31 +01:00
angle [ANGLE] Fix compilation with MSVC2013 Update4 2014-12-15 09:19:48 +01:00
concurrent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib Fix a memleak in QAssociativeIterable::value() 2015-01-04 02:20:32 +01:00
dbus Doc: corrected broken links qtbase 2014-12-23 10:55:45 +01:00
gui QRawFont: improve the thread-safety checks 2014-12-23 16:38:56 +01:00
network Report QHostAddress::Any explicitly in qDebug() 2014-12-28 15:56:24 +01:00
opengl Qt OpenGL is deprecated with 5.4. Show that in the docs as well 2014-12-18 09:48:37 +01:00
openglextensions purge vestiges of opengl es 1 support 2014-04-04 19:32:21 +02:00
platformheaders Doc: Adding API reference section in Qt Platform Headers page. 2014-09-30 21:00:50 +02:00
platformsupport Prevent continuous painting with viewport QOpenGLWidget 2014-12-18 09:46:23 +01:00
plugins Fix win32-g++ build due to -Werror 2014-12-26 01:50:57 +01:00
printsupport Make it possible to disable font embedding 2014-11-15 08:49:15 +01:00
sql QODBC: fix converted string values empty SQLServer 2012 2014-12-30 23:55:51 +01:00
testlib Also search current directory in QFINDTESTDATA 2014-12-19 16:00:59 +01:00
tools qdoc: Fixed broken TOC links to Reimplemented sections 2014-12-19 08:07:55 +01:00
widgets Doc: Describe the enum item QStyle::PE_FrameStatusBar as obsolete 2014-12-22 23:47:14 +01:00
winmain Merge remote-tracking branch 'origin/5.3' into 5.4 2014-08-12 13:05:02 +02:00
xml Remove old Trolltech feature string from QXmlSimpleReader docs 2014-10-20 11:24:59 +02:00
src.pro Add missing host_build CONFIG for qlalr 2014-11-25 20:26:53 +01:00