tests: component-loader: fix GError memory leak

This commit is contained in:
George Kiagiadakis 2024-08-31 20:47:45 +03:00
parent a245d5fa46
commit 89ab5616c0

View file

@ -165,7 +165,7 @@ static void
on_component_failed (WpCore * core, GAsyncResult * res, TestFixture *f)
{
gboolean loaded;
GError *error = NULL;
g_autoptr (GError) error = NULL;
loaded = wp_core_load_component_finish (core, res, &error);
g_assert_error (error, WP_DOMAIN_LIBRARY, WP_LIBRARY_ERROR_INVALID_ARGUMENT);