[farsight2/master] Don't leak GErrors in tests
Olivier Crête
olivier.crete at collabora.co.uk
Tue Dec 23 15:22:25 PST 2008
---
tests/check/main/rtpcodecs.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/tests/check/main/rtpcodecs.c b/tests/check/main/rtpcodecs.c
index 2d9191e..8ac8e25 100644
--- a/tests/check/main/rtpcodecs.c
+++ b/tests/check/main/rtpcodecs.c
@@ -155,6 +155,8 @@ GST_START_TEST (test_rtpcodecs_local_codecs_config)
fail_unless (error->code == FS_ERROR_NO_CODECS,
"The error code is %d, not FS_ERROR_NO_CODECS");
+ g_clear_error (&error);
+
fs_codec_list_destroy (codecs);
cleanup_simple_conference (dat);
@@ -260,6 +262,8 @@ GST_START_TEST (test_rtpcodecs_invalid_remote_codecs)
fail_unless (error->code == FS_ERROR_NEGOTIATION_FAILED, "Error isn't"
" negotiation failed, it is %d", error->code);
+ g_clear_error (&error);
+
fs_codec_list_destroy (codecs);
cleanup_simple_conference (dat);
--
1.5.6.5
More information about the farsight-commits
mailing list