From 77208215d6f1c8604161d003f48eab94b8c17504 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 11 Apr 2006 10:45:32 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ gst/playback/gststreamselector.c | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b765aa5547..60eece84ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-04-11 Tim-Philipp Müller + + * gst/playback/gststreamselector.c: + (gst_stream_selector_get_property): + Don't leak pad name. + 2006-04-10 Michael Smith * tests/check/Makefile.am: diff --git a/gst/playback/gststreamselector.c b/gst/playback/gststreamselector.c index 3aac714162..c68245f786 100644 --- a/gst/playback/gststreamselector.c +++ b/gst/playback/gststreamselector.c @@ -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; } -- 2.34.1