mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Fix memory leaks in the gdbus introspection parser
We were getting our length zero, yet NULL-terminated arrays in a twist in some places. Stop passing around ignored length arguments at the same time. https://bugzilla.gnome.org/show_bug.cgi?id=635099
This commit is contained in:
@@ -75,7 +75,8 @@ test_introspection (GDBusProxy *proxy)
|
||||
g_assert (method_info == NULL);
|
||||
method_info = g_dbus_interface_info_lookup_method (interface_info, "Introspect");
|
||||
g_assert (method_info != NULL);
|
||||
g_assert (method_info->in_args == NULL);
|
||||
g_assert (method_info->in_args != NULL);
|
||||
g_assert (method_info->in_args[0] == NULL);
|
||||
g_assert (method_info->out_args != NULL);
|
||||
g_assert (method_info->out_args[0] != NULL);
|
||||
g_assert (method_info->out_args[1] == NULL);
|
||||
|
Reference in New Issue
Block a user