Fix some finalize leaks by chaining up to the parent method.

Original commit message from CVS:
* ext/xvid/gstxvidenc.c:
* gst/vmnc/vmncdec.c:
* sys/glsink/glimagesink.c:
* sys/glsink/gstgldisplay.c:
Fix some finalize leaks by chaining up to the parent method.
This commit is contained in:
Jan Schmidt 2008-02-12 10:22:42 +00:00
parent 93e767bed8
commit 8792203e39
5 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,12 @@
2008-02-12 Jan Schmidt <jan.schmidt@sun.com>
* ext/xvid/gstxvidenc.c:
* gst/vmnc/vmncdec.c:
* sys/glsink/glimagesink.c:
* sys/glsink/gstgldisplay.c:
Fix some finalize leaks by chaining up to the parent method.
2008-02-12 Sebastian Dröge <slomo@circular-chaos.org> 2008-02-12 Sebastian Dröge <slomo@circular-chaos.org>
* tests/check/elements/souphttpsrc.c: * tests/check/elements/souphttpsrc.c:

View file

@ -519,6 +519,8 @@ gst_xvidenc_finalize (GObject * object)
GstXvidEnc *xvidenc = GST_XVIDENC (object); GstXvidEnc *xvidenc = GST_XVIDENC (object);
g_free (xvidenc->filename); g_free (xvidenc->filename);
G_OBJECT_CLASS (parent_class)->finalize (object);
} }
static gboolean static gboolean

View file

@ -219,6 +219,8 @@ vmnc_dec_finalize (GObject * object)
GstVMncDec *dec = GST_VMNC_DEC (object); GstVMncDec *dec = GST_VMNC_DEC (object);
g_object_unref (dec->adapter); g_object_unref (dec->adapter);
G_OBJECT_CLASS (parent_class)->finalize (object);
} }
static void static void

View file

@ -207,6 +207,8 @@ gst_glimage_sink_finalize (GObject * object)
gst_caps_unref (glimage_sink->caps); gst_caps_unref (glimage_sink->caps);
} }
g_free (glimage_sink->display_name); g_free (glimage_sink->display_name);
G_OBJECT_CLASS (parent_class)->finalize (object);
} }
static void static void

View file

@ -75,6 +75,8 @@ gst_gl_display_finalize (GObject * object)
if (display->lock) { if (display->lock) {
g_mutex_free (display->lock); g_mutex_free (display->lock);
} }
G_OBJECT_CLASS (parent_class)->finalize (object);
} }
static gboolean gst_gl_display_check_features (GstGLDisplay * display); static gboolean gst_gl_display_check_features (GstGLDisplay * display);