From: <tp...@ke...> - 2006-08-16 13:48:13
|
CVS Root: /cvs/gstreamer Module: gst-plugins-good Changes by: tpm Date: Wed Aug 16 2006 13:48:12 UTC Log message: * sys/oss/gstossmixerelement.c: (gst_oss_mixer_element_class_init), (gst_oss_mixer_element_finalize): Don't leak device string. Modified files: . : ChangeLog sys/oss : gstossmixerelement.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/ChangeLog.diff?r1=1.2490&r2=1.2491 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-good/sys/oss/gstossmixerelement.c.diff?r1=1.8&r2=1.9 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-good/ChangeLog,v retrieving revision 1.2490 retrieving revision 1.2491 diff -u -d -r1.2490 -r1.2491 --- ChangeLog 16 Aug 2006 13:01:31 -0000 1.2490 +++ ChangeLog 16 Aug 2006 13:47:59 -0000 1.2491 @@ -1,5 +1,11 @@ 2006-08-16 Tim-Philipp Müller <tim at centricular dot net> + * sys/oss/gstossmixerelement.c: (gst_oss_mixer_element_class_init), + (gst_oss_mixer_element_finalize): + Don't leak device string. + +2006-08-16 Tim-Philipp Müller <tim at centricular dot net> * configure.ac: Require CVS of GStreamer core and -base (for GST_TAG_EXTENDED_COMMENT and gst_tag_parse_extended_comment()). Index: gstossmixerelement.c RCS file: /cvs/gstreamer/gst-plugins-good/sys/oss/gstossmixerelement.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- gstossmixerelement.c 16 Aug 2006 10:22:31 -0000 1.8 +++ gstossmixerelement.c 16 Aug 2006 13:48:00 -0000 1.9 @@ -75,6 +75,7 @@ guint prop_id, const GValue * value, GParamSpec * pspec); static void gst_oss_mixer_element_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); +static void gst_oss_mixer_element_finalize (GObject * object); static void gst_oss_mixer_element_base_init (gpointer klass) @@ -92,6 +93,7 @@ element_class = (GstElementClass *) klass; gobject_class = (GObjectClass *) klass; + gobject_class->finalize = gst_oss_mixer_element_finalize; gobject_class->set_property = gst_oss_mixer_element_set_property; gobject_class->get_property = gst_oss_mixer_element_get_property; @@ -117,6 +119,16 @@ } +gst_oss_mixer_element_finalize (GObject * obj) +{ + GstOssMixerElement *this = GST_OSS_MIXER_ELEMENT (obj); + g_free (this->device); + G_OBJECT_CLASS (parent_class)->finalize (obj); +} +static void gst_oss_mixer_element_init (GstOssMixerElement * this, GstOssMixerElementClass * g_class) { |