From 32a727628fa71b52c2bc45be498d602e659838a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommi=20My=C3=B6h=C3=A4nen?= Date: Thu, 5 Apr 2007 10:27:06 +0000 Subject: [PATCH] gst/playback/gstplaybasebin.c: Fix leak in add_stream(), when g_value_set_object() increases the refcount of streamin... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original commit message from CVS: Patch by: Tommi Myöhänen * gst/playback/gstplaybasebin.c: (add_stream): Fix leak in add_stream(), when g_value_set_object() increases the refcount of streaminfo object. Fixes #426250. --- ChangeLog | 8 ++++++++ gst/playback/gstplaybasebin.c | 1 + 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7112d10a50..1fdc290dbb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-04-05 Wim Taymans + + Patch by: Tommi Myöhänen + + * gst/playback/gstplaybasebin.c: (add_stream): + Fix leak in add_stream(), when g_value_set_object() increases the + refcount of streaminfo object. Fixes #426250. + 2007-04-03 David Schleef * gst/videotestsrc/gstvideotestsrc.c: diff --git a/gst/playback/gstplaybasebin.c b/gst/playback/gstplaybasebin.c index 4fa09c60b0..76d5f380a7 100644 --- a/gst/playback/gstplaybasebin.c +++ b/gst/playback/gstplaybasebin.c @@ -912,6 +912,7 @@ add_stream (GstPlayBaseGroup * group, GstStreamInfo * info) g_value_init (&v, G_TYPE_OBJECT); g_value_set_object (&v, info); g_value_array_append (group->streaminfo_value_array, &v); + g_value_unset (&v); group->streaminfo = g_list_append (group->streaminfo, info); if (info->type > 0 && info->type <= NUM_TYPES) { group->type[info->type - 1].npads++;