diff options
author | YAMAMOTO Atsushi <atsushi.yamamoto@signal-slot.co.jp> | 2022-09-21 19:17:18 +0900 |
---|---|---|
committer | YAMAMOTO Atsushi <atsushi.yamamoto@signal-slot.co.jp> | 2022-10-06 00:05:47 +0900 |
commit | 06de9a93da07a7246f103c8e2f458653cfce06ef (patch) | |
tree | cbfa80b316474068d8d27548d59ada854e97f9db /tests | |
parent | ec8b7725226bc2758d981745229a6ebfe7cd55c8 (diff) |
Fix memory leak in manual test 'rendercapture-qml'
Deallocate the RenderCaptureReply object returned from requestCapture.
Change-Id: I4fa96a724ad9143dee4a09c51dc8e007ea4e828c
Reviewed-by: Tasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/rendercapture-qml-fbo/main.qml | 1 | ||||
-rw-r--r-- | tests/manual/rendercapture-qml/main.qml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/rendercapture-qml-fbo/main.qml b/tests/manual/rendercapture-qml-fbo/main.qml index 772c8f65e..7a7be3ef6 100644 --- a/tests/manual/rendercapture-qml-fbo/main.qml +++ b/tests/manual/rendercapture-qml-fbo/main.qml @@ -57,6 +57,7 @@ Item { _renderCaptureProvider.updateImage(reply) image.source = "image://rendercapture/" + cid reply.saveImage("capture.png") + reply.destroy() cid++ if (continuous === true) doRenderCapture() diff --git a/tests/manual/rendercapture-qml/main.qml b/tests/manual/rendercapture-qml/main.qml index 2fe27350b..ee0339afa 100644 --- a/tests/manual/rendercapture-qml/main.qml +++ b/tests/manual/rendercapture-qml/main.qml @@ -58,6 +58,7 @@ Item { _renderCaptureProvider.updateImage(reply) image.source = "image://rendercapture/" + cid reply.saveImage("capture" + cid + ".png") + reply.destroy() cid++ if (continuous === true) doRenderCapture() |