mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
ext/esd/esdsink.c: Use a finalize function, not dispose, and more importantly, call the parent class finalize functio...
Original commit message from CVS: * ext/esd/esdsink.c: (gst_esdsink_class_init), (gst_esdsink_finalize): Use a finalize function, not dispose, and more importantly, call the parent class finalize function too
This commit is contained in:
parent
56443c3d45
commit
ea8e39aa43
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-11-01 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
* ext/esd/esdsink.c: (gst_esdsink_class_init),
|
||||
(gst_esdsink_finalize):
|
||||
Use a finalize function, not dispose, and more importantly,
|
||||
call the parent class finalize function too
|
||||
|
||||
2004-11-01 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* ext/ogg/gstoggdemux.c:
|
||||
|
|
|
@ -68,7 +68,7 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
|||
static void gst_esdsink_base_init (gpointer g_class);
|
||||
static void gst_esdsink_class_init (gpointer g_class, gpointer class_data);
|
||||
static void gst_esdsink_init (GTypeInstance * instance, gpointer g_class);
|
||||
static void gst_esdsink_dispose (GObject * object);
|
||||
static void gst_esdsink_finalize (GObject * object);
|
||||
|
||||
static gboolean gst_esdsink_open_audio (GstEsdsink * sink);
|
||||
static void gst_esdsink_close_audio (GstEsdsink * sink);
|
||||
|
@ -146,7 +146,7 @@ gst_esdsink_class_init (gpointer g_class, gpointer class_data)
|
|||
|
||||
gobject_class->set_property = gst_esdsink_set_property;
|
||||
gobject_class->get_property = gst_esdsink_get_property;
|
||||
gobject_class->dispose = gst_esdsink_dispose;
|
||||
gobject_class->finalize = gst_esdsink_finalize;
|
||||
|
||||
gstelement_class->change_state = gst_esdsink_change_state;
|
||||
gstelement_class->set_clock = gst_esdsink_set_clock;
|
||||
|
@ -189,11 +189,13 @@ gst_esdsink_init (GTypeInstance * instance, gpointer g_class)
|
|||
}
|
||||
|
||||
static void
|
||||
gst_esdsink_dispose (GObject * object)
|
||||
gst_esdsink_finalize (GObject * object)
|
||||
{
|
||||
GstEsdsink *esdsink = GST_ESDSINK (object);
|
||||
|
||||
g_free (esdsink->host);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
#ifdef unused
|
||||
|
|
Loading…
Reference in a new issue