mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
[host] dxgi: fix memory leak if an error occurs
This commit is contained in:
parent
8692e9af80
commit
4f4d2dbf42
@ -758,6 +758,8 @@ static CaptureResult dxgi_capture()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IDXGIResource_Release(res);
|
||||||
|
|
||||||
// if the pointer shape has changed
|
// if the pointer shape has changed
|
||||||
uint32_t bufferSize;
|
uint32_t bufferSize;
|
||||||
if (frameInfo.PointerShapeBufferSize > 0)
|
if (frameInfo.PointerShapeBufferSize > 0)
|
||||||
@ -854,8 +856,6 @@ static CaptureResult dxgi_capture()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
IDXGIResource_Release(res);
|
|
||||||
|
|
||||||
if (frameInfo.LastMouseUpdateTime.QuadPart)
|
if (frameInfo.LastMouseUpdateTime.QuadPart)
|
||||||
{
|
{
|
||||||
/* the pointer position is only valid if the pointer is visible */
|
/* the pointer position is only valid if the pointer is visible */
|
||||||
|
Loading…
Reference in New Issue
Block a user