From 62d1f4c8cae5b0602a87a995670f8b80cca046a9 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Thu, 22 Sep 2005 20:02:11 +0000 Subject: [PATCH] fix leak in the test itself Original commit message from CVS: fix leak in the test itself --- ChangeLog | 5 +++++ check/gst/gstvalue.c | 4 ++++ tests/check/gst/gstvalue.c | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 34eb6c7..80c7179 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-22 Thomas Vander Stichele + + * check/gst/gstvalue.c: (GST_START_TEST): + fix leaks in the test itself + 2005-09-22 Wim Taymans * gst/base/gstbasesink.c: (gst_base_sink_class_init), diff --git a/check/gst/gstvalue.c b/check/gst/gstvalue.c index 37c5a3c..4425cd3 100644 --- a/check/gst/gstvalue.c +++ b/check/gst/gstvalue.c @@ -938,7 +938,9 @@ GST_START_TEST (test_date) fail_unless (g_date_compare (date, date2) == 0); g_date_free (date); + g_date_free (date2); date = NULL; + date2 = NULL; str = gst_structure_to_string (s); gst_structure_free (s); @@ -961,6 +963,8 @@ GST_START_TEST (test_date) fail_unless (g_date_get_day (date) == 22); fail_unless (g_date_get_month (date) == 9); fail_unless (g_date_get_year (date) == 2005); + g_date_free (date); + date = NULL; str = gst_structure_to_string (s); gst_structure_free (s); diff --git a/tests/check/gst/gstvalue.c b/tests/check/gst/gstvalue.c index 37c5a3c..4425cd3 100644 --- a/tests/check/gst/gstvalue.c +++ b/tests/check/gst/gstvalue.c @@ -938,7 +938,9 @@ GST_START_TEST (test_date) fail_unless (g_date_compare (date, date2) == 0); g_date_free (date); + g_date_free (date2); date = NULL; + date2 = NULL; str = gst_structure_to_string (s); gst_structure_free (s); @@ -961,6 +963,8 @@ GST_START_TEST (test_date) fail_unless (g_date_get_day (date) == 22); fail_unless (g_date_get_month (date) == 9); fail_unless (g_date_get_year (date) == 2005); + g_date_free (date); + date = NULL; str = gst_structure_to_string (s); gst_structure_free (s); -- 2.7.4