sys/fbdev/gstfbdevsink.c: Free the device string in finalize. Fixes bug #515722.
Original commit message from CVS: * sys/fbdev/gstfbdevsink.c: (gst_fbdevsink_class_init), (gst_fbdevsink_finalize): Free the device string in finalize. Fixes bug #515722.
This commit is contained in:
parent
8142dfd712
commit
fc50684825
@ -1,3 +1,9 @@
|
|||||||
|
2008-02-11 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* sys/fbdev/gstfbdevsink.c: (gst_fbdevsink_class_init),
|
||||||
|
(gst_fbdevsink_finalize):
|
||||||
|
Free the device string in finalize. Fixes bug #515722.
|
||||||
|
|
||||||
2008-02-11 Sebastian Dröge <slomo@circular-chaos.org>
|
2008-02-11 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* ext/xvid/gstxvidenc.c: (gst_xvidenc_init):
|
* ext/xvid/gstxvidenc.c: (gst_xvidenc_init):
|
||||||
|
@ -64,6 +64,7 @@ static GstFlowReturn gst_fbdevsink_render (GstBaseSink * bsink,
|
|||||||
static gboolean gst_fbdevsink_start (GstBaseSink * bsink);
|
static gboolean gst_fbdevsink_start (GstBaseSink * bsink);
|
||||||
static gboolean gst_fbdevsink_stop (GstBaseSink * bsink);
|
static gboolean gst_fbdevsink_stop (GstBaseSink * bsink);
|
||||||
|
|
||||||
|
static void gst_fbdevsink_finalize (GObject * object);
|
||||||
static void gst_fbdevsink_set_property (GObject * object,
|
static void gst_fbdevsink_set_property (GObject * object,
|
||||||
guint prop_id, const GValue * value, GParamSpec * pspec);
|
guint prop_id, const GValue * value, GParamSpec * pspec);
|
||||||
static void gst_fbdevsink_get_property (GObject * object,
|
static void gst_fbdevsink_get_property (GObject * object,
|
||||||
@ -391,6 +392,7 @@ gst_fbdevsink_class_init (GstFBDEVSinkClass * klass)
|
|||||||
|
|
||||||
gobject_class->set_property = gst_fbdevsink_set_property;
|
gobject_class->set_property = gst_fbdevsink_set_property;
|
||||||
gobject_class->get_property = gst_fbdevsink_get_property;
|
gobject_class->get_property = gst_fbdevsink_get_property;
|
||||||
|
gobject_class->finalize = gst_fbdevsink_finalize;
|
||||||
|
|
||||||
gstelement_class->change_state =
|
gstelement_class->change_state =
|
||||||
GST_DEBUG_FUNCPTR (gst_fbdevsink_change_state);
|
GST_DEBUG_FUNCPTR (gst_fbdevsink_change_state);
|
||||||
@ -409,6 +411,16 @@ gst_fbdevsink_class_init (GstFBDEVSinkClass * klass)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_fbdevsink_finalize (GObject * object)
|
||||||
|
{
|
||||||
|
GstFBDEVSink *fbdevsink = GST_FBDEVSINK (object);
|
||||||
|
|
||||||
|
g_free (fbdevsink->device);
|
||||||
|
|
||||||
|
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||||
|
}
|
||||||
|
|
||||||
GType
|
GType
|
||||||
gst_fbdevsink_get_type (void)
|
gst_fbdevsink_get_type (void)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user