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:
Tim-Philipp Müller 2006-04-11 10:45:32 +00:00
parent 39296e813b
commit 77208215d6
2 changed files with 9 additions and 2 deletions

View file

@ -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:

View file

@ -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;
} }