summaryrefslogtreecommitdiff
path: root/gst/playback/gsturidecodebin.c
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2008-12-12 10:54:45 +0000
committerEdward Hervey <bilboed@bilboed.com>2008-12-12 10:54:45 +0000
commit89413e390ca14bb14b834449b5bb08487aa47e9b (patch)
tree2333e8f8240d7e1bb7a74a4a3838ea91c62242eb /gst/playback/gsturidecodebin.c
parenta3c1a0507aa0ef8f4d83ac0783418d3d130b8894 (diff)
gst/playback/gsturidecodebin.c: Free the factory array when finalizing.
Original commit message from CVS: * gst/playback/gsturidecodebin.c: (gst_uri_decode_bin_finalize): Free the factory array when finalizing. * sys/v4l/gstv4lsrc.c: (gst_v4lsrc_base_init): Use a GstStaticPadTemplate since the src pad caps are fixed.
Diffstat (limited to 'gst/playback/gsturidecodebin.c')
-rw-r--r--gst/playback/gsturidecodebin.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c
index e5ea264b..034d7288 100644
--- a/gst/playback/gsturidecodebin.c
+++ b/gst/playback/gsturidecodebin.c
@@ -432,6 +432,10 @@ gst_uri_decode_bin_finalize (GObject * obj)
g_mutex_free (dec->lock);
g_free (dec->uri);
g_free (dec->encoding);
+ if (dec->factories) {
+ g_value_array_free (dec->factories);
+ dec->factories = NULL;
+ }
G_OBJECT_CLASS (parent_class)->finalize (obj);
}