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:
Loïc Yhuel 2010-08-24 13:46:03 -04:00
parent ce269022ab
commit 9b46c88361

View File

@ -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);