mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 587289: Unload D3D10_1.dll at the right place. r=joe a=blocking-beta4+
This commit is contained in:
parent
98f073e813
commit
bb134293b4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user