mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 02:43:03 +00:00
Make sure to free lib.
This commit is contained in:
parent
fc2a39cd58
commit
1fb53627ac
@ -85,7 +85,7 @@ void gfx_set_dwm(void)
|
||||
}
|
||||
|
||||
if (!g_settings.video.disable_composition)
|
||||
return;
|
||||
goto end;
|
||||
|
||||
HRESULT (WINAPI *composition_enable)(UINT) = (HRESULT (WINAPI*)(UINT))dylib_proc(lib, "DwmEnableComposition");
|
||||
if (!composition_enable)
|
||||
@ -99,6 +99,7 @@ void gfx_set_dwm(void)
|
||||
if (FAILED(ret))
|
||||
SSNES_ERR("Failed to set composition state ...\n");
|
||||
|
||||
end:
|
||||
dylib_close(lib);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user