mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
gst/playback/gstplaybasebin.c: Fix leak in add_stream(), when g_value_set_object() increases the refcount of streamin...
Original commit message from CVS: Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com> * gst/playback/gstplaybasebin.c: (add_stream): Fix leak in add_stream(), when g_value_set_object() increases the refcount of streaminfo object. Fixes #426250.
This commit is contained in:
parent
e859791a21
commit
32a727628f
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2007-04-05 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
|
Patch by: Tommi Myöhänen <ext-tommi dot myohanen at nokia dot com>
|
||||||
|
|
||||||
|
* 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 <ds@schleef.org>
|
2007-04-03 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* gst/videotestsrc/gstvideotestsrc.c:
|
* gst/videotestsrc/gstvideotestsrc.c:
|
||||||
|
|
|
@ -912,6 +912,7 @@ add_stream (GstPlayBaseGroup * group, GstStreamInfo * info)
|
||||||
g_value_init (&v, G_TYPE_OBJECT);
|
g_value_init (&v, G_TYPE_OBJECT);
|
||||||
g_value_set_object (&v, info);
|
g_value_set_object (&v, info);
|
||||||
g_value_array_append (group->streaminfo_value_array, &v);
|
g_value_array_append (group->streaminfo_value_array, &v);
|
||||||
|
g_value_unset (&v);
|
||||||
group->streaminfo = g_list_append (group->streaminfo, info);
|
group->streaminfo = g_list_append (group->streaminfo, info);
|
||||||
if (info->type > 0 && info->type <= NUM_TYPES) {
|
if (info->type > 0 && info->type <= NUM_TYPES) {
|
||||||
group->type[info->type - 1].npads++;
|
group->type[info->type - 1].npads++;
|
||||||
|
|
Loading…
Reference in a new issue