gst/sine/gstsinesrc.c: fix memleak by properly disposing sinesrc
Original commit message from CVS: 2004-02-04 Benjamin Otte <in7y118@public.uni-hamburg.de> * gst/sine/gstsinesrc.c: (gst_sinesrc_class_init), (gst_sinesrc_dispose): fix memleak by properly disposing sinesrc
This commit is contained in:
parent
d1f51a2773
commit
d7949a9ba8
@ -1,3 +1,9 @@
|
|||||||
|
2004-02-04 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||||
|
|
||||||
|
* gst/sine/gstsinesrc.c: (gst_sinesrc_class_init),
|
||||||
|
(gst_sinesrc_dispose):
|
||||||
|
fix memleak by properly disposing sinesrc
|
||||||
|
|
||||||
2004-02-04 Julien MOUTTE <julien@moutte.net>
|
2004-02-04 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
* gst-libs/gst/xoverlay/xoverlay.c: (gst_x_overlay_expose):
|
* gst-libs/gst/xoverlay/xoverlay.c: (gst_x_overlay_expose):
|
||||||
|
@ -72,6 +72,7 @@ GST_STATIC_PAD_TEMPLATE (
|
|||||||
static void gst_sinesrc_class_init (GstSineSrcClass *klass);
|
static void gst_sinesrc_class_init (GstSineSrcClass *klass);
|
||||||
static void gst_sinesrc_base_init (GstSineSrcClass *klass);
|
static void gst_sinesrc_base_init (GstSineSrcClass *klass);
|
||||||
static void gst_sinesrc_init (GstSineSrc *src);
|
static void gst_sinesrc_init (GstSineSrc *src);
|
||||||
|
static void gst_sinesrc_dispose (GObject *object);
|
||||||
static void gst_sinesrc_set_property (GObject *object,
|
static void gst_sinesrc_set_property (GObject *object,
|
||||||
guint prop_id,
|
guint prop_id,
|
||||||
const GValue *value,
|
const GValue *value,
|
||||||
@ -161,6 +162,7 @@ gst_sinesrc_class_init (GstSineSrcClass *klass)
|
|||||||
|
|
||||||
gobject_class->set_property = gst_sinesrc_set_property;
|
gobject_class->set_property = gst_sinesrc_set_property;
|
||||||
gobject_class->get_property = gst_sinesrc_get_property;
|
gobject_class->get_property = gst_sinesrc_get_property;
|
||||||
|
gobject_class->dispose = gst_sinesrc_dispose;
|
||||||
|
|
||||||
gstelement_class->change_state = gst_sinesrc_change_state;
|
gstelement_class->change_state = gst_sinesrc_change_state;
|
||||||
}
|
}
|
||||||
@ -215,6 +217,17 @@ gst_sinesrc_init (GstSineSrc *src)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
gst_sinesrc_dispose (GObject *object)
|
||||||
|
{
|
||||||
|
GstSineSrc *sinesrc = GST_SINESRC (object);
|
||||||
|
|
||||||
|
g_free (sinesrc->table_data);
|
||||||
|
sinesrc->table_data = NULL;
|
||||||
|
|
||||||
|
GST_CALL_PARENT (G_OBJECT_CLASS, dispose, (object));
|
||||||
|
}
|
||||||
|
|
||||||
static GstCaps *
|
static GstCaps *
|
||||||
gst_sinesrc_src_fixate (GstPad *pad, const GstCaps *caps)
|
gst_sinesrc_src_fixate (GstPad *pad, const GstCaps *caps)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user