mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
element: remove base_class_finalize_func which is never called
Won't be called for static types, so no point keeping it around. https://bugzilla.gnome.org/show_bug.cgi?id=765540
This commit is contained in:
parent
6446a1a45c
commit
38c74e41c7
1 changed files with 1 additions and 13 deletions
|
@ -118,7 +118,6 @@ enum
|
|||
static void gst_element_class_init (GstElementClass * klass);
|
||||
static void gst_element_init (GstElement * element);
|
||||
static void gst_element_base_class_init (gpointer g_class);
|
||||
static void gst_element_base_class_finalize (gpointer g_class);
|
||||
|
||||
static void gst_element_constructed (GObject * object);
|
||||
static void gst_element_dispose (GObject * object);
|
||||
|
@ -167,7 +166,7 @@ gst_element_get_type (void)
|
|||
static const GTypeInfo element_info = {
|
||||
sizeof (GstElementClass),
|
||||
gst_element_base_class_init,
|
||||
gst_element_base_class_finalize,
|
||||
NULL, /* base_class_finalize */
|
||||
(GClassInitFunc) gst_element_class_init,
|
||||
NULL,
|
||||
NULL,
|
||||
|
@ -295,17 +294,6 @@ gst_element_base_class_init (gpointer g_class)
|
|||
G_OBJECT_CLASS_NAME (element_class), element_class->elementfactory);
|
||||
}
|
||||
|
||||
static void
|
||||
gst_element_base_class_finalize (gpointer g_class)
|
||||
{
|
||||
GstElementClass *klass = GST_ELEMENT_CLASS (g_class);
|
||||
|
||||
g_list_foreach (klass->padtemplates, (GFunc) gst_object_unref, NULL);
|
||||
g_list_free (klass->padtemplates);
|
||||
|
||||
gst_structure_free (klass->metadata);
|
||||
}
|
||||
|
||||
static void
|
||||
gst_element_init (GstElement * element)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue