mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
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:
committed by
Philip Withnall
parent
407eae1969
commit
62f6c80e63
@@ -131,21 +131,11 @@ _g_module_self (void)
|
||||
}
|
||||
|
||||
static void
|
||||
_g_module_close (gpointer handle,
|
||||
gboolean is_unref)
|
||||
_g_module_close (gpointer handle)
|
||||
{
|
||||
/* are there any systems out there that have dlopen()/dlclose()
|
||||
* without a reference count implementation?
|
||||
*
|
||||
* See above for the Android special case
|
||||
*/
|
||||
#if defined(__BIONIC__)
|
||||
is_unref = (handle != RTLD_DEFAULT);
|
||||
#else
|
||||
is_unref |= 1;
|
||||
if (handle != RTLD_DEFAULT)
|
||||
#endif
|
||||
|
||||
if (is_unref)
|
||||
{
|
||||
if (dlclose (handle) != 0)
|
||||
g_module_set_error (fetch_dlerror (TRUE));
|
||||
|
Reference in New Issue
Block a user