mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
girepository: Fix leak in write_vfunc_info
Found by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=1938731
This commit is contained in:
parent
16b064bea9
commit
3ebf2f5140
@ -923,7 +923,10 @@ write_vfunc_info (const gchar *namespace,
|
||||
xml_printf (file, " offset=\"%d\"", offset);
|
||||
|
||||
if (invoker)
|
||||
xml_printf (file, " invoker=\"%s\"", g_base_info_get_name ((GIBaseInfo*)invoker));
|
||||
{
|
||||
xml_printf (file, " invoker=\"%s\"", g_base_info_get_name ((GIBaseInfo*)invoker));
|
||||
g_base_info_unref ((GIBaseInfo *)invoker);
|
||||
}
|
||||
|
||||
write_callable_info (namespace, (GICallableInfo*)info, file);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user