summaryrefslogtreecommitdiffstats
path: root/sys/glsink
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2008-02-12 10:22:42 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2008-02-12 10:22:42 +0000
commit8792203e3938118f5800b75eeb1930720870f82f (patch)
treec1a715cb13e1b4845d5077c3621e0f889e3b44f1 /sys/glsink
parent93e767bed88cb2195158981c6bfe6263c3bfe320 (diff)
downloadgst-plugins-bad-8792203e3938118f5800b75eeb1930720870f82f.tar.gz
gst-plugins-bad-8792203e3938118f5800b75eeb1930720870f82f.tar.bz2
gst-plugins-bad-8792203e3938118f5800b75eeb1930720870f82f.zip
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.
Diffstat (limited to 'sys/glsink')
-rw-r--r--sys/glsink/glimagesink.c2
-rw-r--r--sys/glsink/gstgldisplay.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/glsink/glimagesink.c b/sys/glsink/glimagesink.c
index 250a4efc..322b0438 100644
--- a/sys/glsink/glimagesink.c
+++ b/sys/glsink/glimagesink.c
@@ -207,6 +207,8 @@ gst_glimage_sink_finalize (GObject * object)
gst_caps_unref (glimage_sink->caps);
}
g_free (glimage_sink->display_name);
+
+ G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
diff --git a/sys/glsink/gstgldisplay.c b/sys/glsink/gstgldisplay.c
index 99a732e2..fd81f9cf 100644
--- a/sys/glsink/gstgldisplay.c
+++ b/sys/glsink/gstgldisplay.c
@@ -75,6 +75,8 @@ gst_gl_display_finalize (GObject * object)
if (display->lock) {
g_mutex_free (display->lock);
}
+
+ G_OBJECT_CLASS (parent_class)->finalize (object);
}
static gboolean gst_gl_display_check_features (GstGLDisplay * display);