Bug 587289: Unload D3D10_1.dll at the right place. r=joe a=blocking-beta4+

This commit is contained in:
Bas Schouten 2010-08-14 10:18:05 +02:00
parent 98f073e813
commit bb134293b4

View File

@ -331,9 +331,10 @@ cairo_release_device(cairo_device_t *device)
if (!newrefcnt) {
// Call the correct destructor
cairo_d2d_device_t *d2d_device = reinterpret_cast<cairo_d2d_device_t*>(device);
FreeLibrary(d2d_device->mD3D10_1);
HMODULE d3d10_1 = d2d_device->mD3D10_1;
delete d2d_device;
_cairo_d2d_release_factory();
FreeLibrary(d3d10_1);
}
return newrefcnt;
}