mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
gst/: Fix 2 caps leaks.
Original commit message from CVS: * gst/gstvalue.c: (gst_value_deserialize_caps): * gst/parse/grammar.y: Fix 2 caps leaks.
This commit is contained in:
parent
1479f03d7f
commit
5b5be74fc5
3 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2008-04-17 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst/gstvalue.c: (gst_value_deserialize_caps):
|
||||
* gst/parse/grammar.y:
|
||||
Fix 2 caps leaks.
|
||||
|
||||
2008-04-17 Sebastian Dröge <slomo@circular-chaos.org>
|
||||
|
||||
* gst/gstutils.c: (gst_atomic_int_set):
|
||||
|
|
|
@ -1280,7 +1280,7 @@ gst_value_deserialize_caps (GValue * dest, const gchar * s)
|
|||
caps = gst_caps_from_string (s);
|
||||
|
||||
if (caps) {
|
||||
g_value_set_boxed (dest, caps);
|
||||
g_value_take_boxed (dest, caps);
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
|
|
@ -339,6 +339,7 @@ gst_parse_element_set (gchar *value, GstElement *element, graph_t *graph)
|
|||
if (!gst_value_deserialize (&v, pos))
|
||||
goto error;
|
||||
g_object_set_property (G_OBJECT (target), pspec->name, &v);
|
||||
g_value_unset (&v);
|
||||
} else {
|
||||
/* do a delayed set */
|
||||
if (GST_IS_CHILD_PROXY (element)) {
|
||||
|
|
Loading…
Reference in a new issue