mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 589809. D2D: Fix surface leak. r=bas
We were using a raw pointer and not releasing it. Switch to a RefPtr.
This commit is contained in:
parent
ce269022ab
commit
9b46c88361
@ -717,7 +717,7 @@ static ID3D10Texture2D*
|
||||
_cairo_d2d_get_buffer_texture(cairo_d2d_surface_t *surface)
|
||||
{
|
||||
if (!surface->bufferTexture) {
|
||||
IDXGISurface *surf;
|
||||
RefPtr<IDXGISurface> surf;
|
||||
DXGI_SURFACE_DESC surfDesc;
|
||||
surface->surface->QueryInterface(&surf);
|
||||
surf->GetDesc(&surfDesc);
|
||||
|
Loading…
Reference in New Issue
Block a user