gmodule: change _g_module_close to only take a handle.

Since is_unref |= 1, the second argument, gboolean is_unref, has had
no effect.
This commit is contained in:
Patrick Welche
2018-09-14 10:32:54 +01:00
committed by Philip Withnall
parent 407eae1969
commit 62f6c80e63
4 changed files with 10 additions and 32 deletions

View File

@@ -113,8 +113,7 @@ _g_module_self (void)
}
static void
_g_module_close (gpointer handle,
gboolean is_unref)
_g_module_close (gpointer handle)
{
if (handle != null_module_handle)
if (!FreeLibrary (handle))