diff --git a/ChangeLog b/ChangeLog index 844ada34dc..4c9734de55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-08-15 Tim-Philipp Müller + + * sys/ximage/ximagesink.c: (gst_ximagesink_get_property): + * sys/xvimage/xvimagesink.c: (gst_xvimagesink_get_property): + Fix leak (#351502). + 2006-08-15 Tim-Philipp Müller * docs/plugins/gst-plugins-base-plugins-docs.sgml: diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index c3bb5db784..40480db2de 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -1904,7 +1904,7 @@ gst_ximagesink_get_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_DISPLAY: - g_value_set_string (value, g_strdup (ximagesink->display_name)); + g_value_set_string (value, ximagesink->display_name); break; case PROP_SYNCHRONOUS: g_value_set_boolean (value, ximagesink->synchronous); diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index e31f067338..e2567caca5 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -2534,7 +2534,7 @@ gst_xvimagesink_get_property (GObject * object, guint prop_id, g_value_set_int (value, xvimagesink->saturation); break; case ARG_DISPLAY: - g_value_set_string (value, g_strdup (xvimagesink->display_name)); + g_value_set_string (value, xvimagesink->display_name); break; case ARG_SYNCHRONOUS: g_value_set_boolean (value, xvimagesink->synchronous);