mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Do not leak typelibs with wrong header info.
Previously the typelibs that were loaded but whose header information weren't right were just leaked. https://bugzilla.gnome.org/show_bug.cgi?id=625672
This commit is contained in:
parent
e3b7e76b86
commit
439753a5b3
@ -1280,6 +1280,7 @@ require_internal (GIRepository *repository,
|
||||
"Typelib file %s for namespace '%s' contains "
|
||||
"namespace '%s' which doesn't match the file name",
|
||||
path, namespace, typelib_namespace);
|
||||
g_typelib_free (typelib);
|
||||
goto out;
|
||||
}
|
||||
if (version != NULL && strcmp (typelib_version, version) != 0)
|
||||
@ -1289,6 +1290,7 @@ require_internal (GIRepository *repository,
|
||||
"Typelib file %s for namespace '%s' contains "
|
||||
"version '%s' which doesn't match the expected version '%s'",
|
||||
path, namespace, typelib_version, version);
|
||||
g_typelib_free (typelib);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user