mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
gst/playback/gststreamselector.c: Don't leak pad name.
Original commit message from CVS: * gst/playback/gststreamselector.c: (gst_stream_selector_get_property): Don't leak pad name.
This commit is contained in:
parent
39296e813b
commit
77208215d6
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-04-11 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/playback/gststreamselector.c:
|
||||||
|
(gst_stream_selector_get_property):
|
||||||
|
Don't leak pad name.
|
||||||
|
|
||||||
2006-04-10 Michael Smith <msmith@fluendo.com>
|
2006-04-10 Michael Smith <msmith@fluendo.com>
|
||||||
|
|
||||||
* tests/check/Makefile.am:
|
* tests/check/Makefile.am:
|
||||||
|
|
|
@ -236,9 +236,10 @@ gst_stream_selector_get_property (GObject * object, guint prop_id,
|
||||||
case PROP_ACTIVE_PAD:{
|
case PROP_ACTIVE_PAD:{
|
||||||
GST_OBJECT_LOCK (object);
|
GST_OBJECT_LOCK (object);
|
||||||
if (sel->active_sinkpad != NULL) {
|
if (sel->active_sinkpad != NULL) {
|
||||||
g_value_set_string (value, gst_pad_get_name (sel->active_sinkpad));
|
g_value_take_string (value, gst_pad_get_name (sel->active_sinkpad));
|
||||||
} else
|
} else {
|
||||||
g_value_set_string (value, "");
|
g_value_set_string (value, "");
|
||||||
|
}
|
||||||
GST_OBJECT_UNLOCK (object);
|
GST_OBJECT_UNLOCK (object);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue