qt5base-lts/src
Martin Petersson a9c398096b QIODevice: free memory when buffer is cleared
The QIODevicePrivateLinearBuffer does not deallocate any data on
readAll or clear. This fix will change the buffer so that
data is deallocated on clear, readAll and when read emptied the
buffer.

This is needed for QAbstractSockets that don't have
readBufferMaxSize set, as the buffer will grow but never
decrease in size when you read from it.

Change-Id: Iab42e40182f9ebe0739c99b2d1e820ce287dc931
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
2012-06-26 11:32:39 +02:00
..
3rdparty We shouldn't have a Makefile here. 2012-06-25 02:23:18 +02:00
concurrent fix misnomer: qt_module.prf => qt_build_config.prf 2012-06-19 16:46:08 +02:00
corelib QIODevice: free memory when buffer is cleared 2012-06-26 11:32:39 +02:00
dbus qtdbus: Export org.freedesktop.DBus.Peer interface when introspected 2012-06-22 09:47:59 +02:00
gui Fix docs mentioning Q_EXPORT_PLUGIN2 2012-06-25 00:19:26 +02:00
network QAbstractSocket: Enable readNotifier on read from buffer 2012-06-26 11:32:21 +02:00
opengl Fix setMouseTracking on QGLWidget 2012-06-23 20:27:45 +02:00
platformsupport fix misnomer: qt_module.prf => qt_build_config.prf 2012-06-19 16:46:08 +02:00
plugins [QNX] Enable MT screen event handling on Blackberry 2012-06-26 11:07:20 +02:00
printsupport fix misnomer: qt_module.prf => qt_build_config.prf 2012-06-19 16:46:08 +02:00
sql Fix docs mentioning Q_EXPORT_PLUGIN2 2012-06-25 00:19:26 +02:00
testlib Use valSeen since it results in unused warning otherwise 2012-06-26 05:30:10 +02:00
tools QDoc: Use the module page as link in qt.ditamap. 2012-06-21 12:50:08 +02:00
widgets Fixed inputMethodQuery() for Qt::ImHints 2012-06-26 08:14:17 +02:00
winmain fix misnomer: qt_module.prf => qt_build_config.prf 2012-06-19 16:46:08 +02:00
xml fix misnomer: qt_module.prf => qt_build_config.prf 2012-06-19 16:46:08 +02:00
src.pro rewrite SUBDIRS construction logic 2012-06-19 16:39:50 +02:00