modules: Fix memleak

Modules would leak if they were specified twice in the same command,
so ie this would leak:
  GTK_MODULES=gail,gail
This commit is contained in:
Benjamin Otte 2012-01-21 21:08:11 +01:00
parent ab6007f052
commit b96f423343

View File

@ -363,6 +363,8 @@ load_module (GSList *module_list,
{
module_list = g_slist_prepend (module_list, info);
}
else
info->ref_count--;
}
else
{