summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/winrt/qwinrtscreen.cpp
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2016-04-25 12:29:20 +0200
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2016-04-28 03:40:07 +0000
commit52e68d4e106548eb027d4b35e47c941eb2d73f58 (patch)
tree6e214d113eccd1f522da90ba61dddcb27764d79c /src/plugins/platforms/winrt/qwinrtscreen.cpp
parentadac71c04454219bdca79cbace5a1d9c18ce05c4 (diff)
winrt: Fix memory leak for file reading
IInputStream::ReadAsync might create a separate buffer to fill in data. Passing a buffer with GetAddressOf() can cause a memory leak of the size of data to be read. Instead, pass a separate buffer pointer and continue to use this one after the async operation. This way, the OS can decide whether to switch buffers or not, keeping ref counting in sync. Task-number: QTBUG-52961 Change-Id: I9dfb627287142355ebcf74ca52427b4e8108e8d1 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/platforms/winrt/qwinrtscreen.cpp')
0 files changed, 0 insertions, 0 deletions