loading: Call module exit function also when not dlclosing module on unload
The proper thing to do. Does not affect any of the current loaders.
This commit is contained in:
parent
66f48df4cf
commit
687e13b290
|
@ -237,6 +237,9 @@ __imlib_ProduceLoader(const char *file)
|
|||
static void
|
||||
__imlib_ConsumeLoader(ImlibLoader * l)
|
||||
{
|
||||
if (l->module->inex)
|
||||
l->module->inex(0);
|
||||
|
||||
if (l->module->ldr_flags & LDR_FLAG_KEEP)
|
||||
{
|
||||
/* Not un/re-loadable - Move to unloaded loaders list */
|
||||
|
@ -245,9 +248,6 @@ __imlib_ConsumeLoader(ImlibLoader * l)
|
|||
return;
|
||||
}
|
||||
|
||||
if (l->module->inex)
|
||||
l->module->inex(0);
|
||||
|
||||
if (l->handle)
|
||||
dlclose(l->handle);
|
||||
|
||||
|
|
Loading…
Reference in New Issue