diff options
author | Maurice Kalinowski <maurice.kalinowski@theqtcompany.com> | 2016-04-14 10:45:21 +0200 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2016-04-22 11:44:37 +0000 |
commit | 5206d3783645ad4caf189ab77ce82f360d1e45bc (patch) | |
tree | c40fba29ce29795bf942f3a7b787d22e9e533b69 /src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp | |
parent | f97e1988a6f76d46d551678666a96fa5f36a92f7 (diff) |
winrt: Use ComPtr for better ref count tracking
Just forwarding the content of a ComPtr is potentially dangerous.
Change-Id: I4f3dfa04a5844d299a5653e31a4a0d1e1b86f9b5
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp')
-rw-r--r-- | src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp b/src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp index ae67e33f4..67f12f264 100644 --- a/src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp +++ b/src/plugins/winrt/qwinrtcameraimagecapturecontrol.cpp @@ -147,7 +147,7 @@ int QWinRTCameraImageCaptureControl::capture(const QString &fileName) Q_D(QWinRTCameraImageCaptureControl); ++d->currentCaptureId; - IMediaCapture *capture = d->cameraControl->handle(); + ComPtr<IMediaCapture> capture = d->cameraControl->handle(); if (!capture) { emit error(d->currentCaptureId, QCameraImageCapture::NotReadyError, tr("Camera not ready")); return -1; |