gplugin/gplugin

free the error's we're getting
bugfix/valgrind-catchup
2020-02-27, Gary Kramlich
125979dd0777
Parents 881e8e613d6c
Children e96a77b70793
free the error's we're getting
--- a/gplugin/gplugin-loader-tests.c Thu Feb 27 02:42:53 2020 -0600
+++ b/gplugin/gplugin-loader-tests.c Thu Feb 27 03:26:05 2020 -0600
@@ -110,7 +110,10 @@
ret = gplugin_manager_load_plugin(plugin, &error);
g_assert_false(ret);
+
g_assert_error(error, GPLUGIN_DOMAIN, 0);
+ g_error_free(error);
+
g_assert_cmpint(
gplugin_plugin_get_state(plugin),
==,
@@ -134,7 +137,10 @@
ret = gplugin_manager_load_plugin(plugin, &error);
g_assert_false(ret);
+
g_assert_error(error, GPLUGIN_DOMAIN, 0);
+ g_error_free(error);
+
g_assert_cmpint(
gplugin_plugin_get_state(plugin),
==,
@@ -166,7 +172,10 @@
ret = gplugin_manager_unload_plugin(plugin, &error);
g_assert_false(ret);
+
g_assert_error(error, GPLUGIN_DOMAIN, 0);
+ g_error_free(error);
+
g_assert_cmpint(
gplugin_plugin_get_state(plugin),
==,