mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-29 17:40:42 +00: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
8015553874
commit
dfcd5d8362
@ -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…
x
Reference in New Issue
Block a user