Commit 77208215 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

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.
parent 39296e81
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>
 
* tests/check/Makefile.am:
......
......@@ -236,9 +236,10 @@ gst_stream_selector_get_property (GObject * object, guint prop_id,
case PROP_ACTIVE_PAD:{
GST_OBJECT_LOCK (object);
if (sel->active_sinkpad != NULL) {
g_value_set_string (value, gst_pad_get_name (sel->active_sinkpad));
} else
g_value_take_string (value, gst_pad_get_name (sel->active_sinkpad));
} else {
g_value_set_string (value, "");
}
GST_OBJECT_UNLOCK (object);
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment