summaryrefslogtreecommitdiffstats
path: root/src/plugins/opensles
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@qt.io>2016-08-17 14:03:49 +0200
committerYoann Lopes <yoann.lopes@qt.io>2016-08-22 09:51:20 +0000
commit69296d229eb2f5b5842f7855ef4110e0e4817da2 (patch)
tree9ea49d80a46b85e62cb891e7005e5ccf39025409 /src/plugins/opensles
parenta52aa624e69fa618aa0d29c2a147a7d472751de1 (diff)
AVFoundation: fix memory leak
Using 'self' in a block maintains a strong reference to it, the previous code would never release that reference and therefore leak the AVFMediaPlayerSessionObserver object when the session was deleted. Captured variables used in the relevant block are now marked with '__block' to make sure no strong references are maintained. We now also make sure the session still exist when that callback block is called. Change-Id: I847b524d8692559fe5884517abb5b9cc7696b4fd Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'src/plugins/opensles')
0 files changed, 0 insertions, 0 deletions