GitLab will be down for maintenance this Sunday 13th June, from approx 7-11am UTC. This is for a PostgreSQL migration. See the tracker issue for more informations.

Commit 6b789d2d authored by Jan Schmidt's avatar Jan Schmidt
Browse files

sys/oss/gstosssink.c: Free the device name string when finalised.

Original commit message from CVS:
* sys/oss/gstosssink.c: (gst_oss_sink_class_init),
(gst_oss_sink_init), (gst_oss_sink_finalise):
Free the device name string when finalised.
parent 7814b56e
2006-01-27 Jan Schmidt <thaytan@mad.scientist.com>
* sys/oss/gstosssink.c: (gst_oss_sink_class_init),
(gst_oss_sink_init), (gst_oss_sink_finalise):
Free the device name string when finalised.
2006-01-25 Tim-Philipp Müller <tim at centricular dot net> 2006-01-25 Tim-Philipp Müller <tim at centricular dot net>
* gst/id3demux/gstid3demux.c: (gst_id3demux_remove_srcpad): * gst/id3demux/gstid3demux.c: (gst_id3demux_remove_srcpad):
......
...@@ -59,7 +59,9 @@ GST_ELEMENT_DETAILS ("Audio Sink (OSS)", ...@@ -59,7 +59,9 @@ GST_ELEMENT_DETAILS ("Audio Sink (OSS)",
static void gst_oss_sink_base_init (gpointer g_class); static void gst_oss_sink_base_init (gpointer g_class);
static void gst_oss_sink_class_init (GstOssSinkClass * klass); static void gst_oss_sink_class_init (GstOssSinkClass * klass);
static void gst_oss_sink_init (GstOssSink * osssink); static void gst_oss_sink_init (GstOssSink * osssink);
static void gst_oss_sink_dispose (GObject * object); static void gst_oss_sink_dispose (GObject * object);
static void gst_oss_sink_finalise (GObject * object);
static void gst_oss_sink_get_property (GObject * object, guint prop_id, static void gst_oss_sink_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec); GValue * value, GParamSpec * pspec);
...@@ -179,6 +181,7 @@ gst_oss_sink_class_init (GstOssSinkClass * klass) ...@@ -179,6 +181,7 @@ gst_oss_sink_class_init (GstOssSinkClass * klass)
parent_class = g_type_class_ref (GST_TYPE_BASE_AUDIO_SINK); parent_class = g_type_class_ref (GST_TYPE_BASE_AUDIO_SINK);
gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_oss_sink_dispose); gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_oss_sink_dispose);
gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_oss_sink_finalise);
gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_oss_sink_get_property); gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_oss_sink_get_property);
gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_oss_sink_set_property); gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_oss_sink_set_property);
...@@ -202,10 +205,18 @@ gst_oss_sink_init (GstOssSink * osssink) ...@@ -202,10 +205,18 @@ gst_oss_sink_init (GstOssSink * osssink)
{ {
GST_DEBUG ("initializing osssink"); GST_DEBUG ("initializing osssink");
osssink->device = g_strdup (DEFAULT_DEVICE);; osssink->device = g_strdup (DEFAULT_DEVICE);
osssink->fd = -1; osssink->fd = -1;
} }
static void
gst_oss_sink_finalise (GObject * object)
{
GstOssSink *osssink = GST_OSSSINK (object);
g_free (osssink->device);
}
static void static void
gst_oss_sink_set_property (GObject * object, guint prop_id, gst_oss_sink_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec) const GValue * value, GParamSpec * pspec)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment