summaryrefslogtreecommitdiffstats
path: root/gst/debug
diff options
context:
space:
mode:
Diffstat (limited to 'gst/debug')
-rw-r--r--gst/debug/testplugin.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gst/debug/testplugin.c b/gst/debug/testplugin.c
index 5d1dba53..c521c44c 100644
--- a/gst/debug/testplugin.c
+++ b/gst/debug/testplugin.c
@@ -62,6 +62,8 @@ struct _GstTestClass
gchar *param_names[2 * TESTS_COUNT];
};
+static void gst_test_finalize (GstTest * test);
+
static gboolean gst_test_start (GstBaseSink * trans);
static gboolean gst_test_stop (GstBaseSink * trans);
static gboolean gst_test_sink_event (GstBaseSink * basesink, GstEvent * event);
@@ -107,6 +109,8 @@ gst_test_class_init (GstTestClass * klass)
object_class->set_property = GST_DEBUG_FUNCPTR (gst_test_set_property);
object_class->get_property = GST_DEBUG_FUNCPTR (gst_test_get_property);
+ object_class->finalize = (GObjectFinalizeFunc) gst_test_finalize;
+
for (i = 0; i < TESTS_COUNT; i++) {
GParamSpec *spec;
@@ -141,6 +145,18 @@ gst_test_init (GstTest * test, GstTestClass * g_class)
}
static void
+gst_test_finalize (GstTest * test)
+{
+ guint i;
+
+ for (i = 0; i < TESTS_COUNT; i++) {
+ g_value_unset (&test->values[i]);
+ }
+
+ G_OBJECT_CLASS (parent_class)->finalize ((GObject *) test);
+}
+
+static void
tests_unset (GstTest * test)
{
guint i;