mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-03 11:17:10 +00:00
[host] dxgi: fix memory leak if an error occurs
This commit is contained in:
parent
8692e9af80
commit
4f4d2dbf42
1 changed files with 2 additions and 2 deletions
|
@ -758,6 +758,8 @@ static CaptureResult dxgi_capture()
|
|||
}
|
||||
}
|
||||
|
||||
IDXGIResource_Release(res);
|
||||
|
||||
// if the pointer shape has changed
|
||||
uint32_t bufferSize;
|
||||
if (frameInfo.PointerShapeBufferSize > 0)
|
||||
|
@ -854,8 +856,6 @@ static CaptureResult dxgi_capture()
|
|||
}
|
||||
}
|
||||
|
||||
IDXGIResource_Release(res);
|
||||
|
||||
if (frameInfo.LastMouseUpdateTime.QuadPart)
|
||||
{
|
||||
/* the pointer position is only valid if the pointer is visible */
|
||||
|
|
Loading…
Reference in a new issue