mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 20:33:08 +02:00
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:
parent
ba60ea7aa0
commit
a127f9b7d2
@ -199,6 +199,7 @@ test_callable_info_static_vfunc (RepositoryFixture *fx,
|
|||||||
if (!vfunc_info)
|
if (!vfunc_info)
|
||||||
{
|
{
|
||||||
g_test_skip ("g-ir-scanner is not new enough");
|
g_test_skip ("g-ir-scanner is not new enough");
|
||||||
|
gi_base_info_unref (info);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
g_assert_nonnull (vfunc_info);
|
g_assert_nonnull (vfunc_info);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user