Merge branch 'callable-info-test-leak' into 'main'

tests: Fix a memory leak if a callable-info test is skipped

See merge request GNOME/glib!4483
This commit is contained in:
Marco Trevisan 2025-02-11 13:57:20 +00:00
commit 589c8295ea

View File

@ -199,6 +199,7 @@ test_callable_info_static_vfunc (RepositoryFixture *fx,
if (!vfunc_info)
{
g_test_skip ("g-ir-scanner is not new enough");
gi_base_info_unref (info);
return;
}
g_assert_nonnull (vfunc_info);