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

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2025-02-11 11:40:29 +00:00
parent ba60ea7aa0
commit a127f9b7d2
No known key found for this signature in database
GPG Key ID: C5C42CFB268637CA

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);