From 802f77d9ad2268992eab4b052a9a7b3221c791c2 Mon Sep 17 00:00:00 2001 From: Luca Ognibene Date: Sun, 19 Jun 2005 10:55:42 +0000 Subject: [PATCH] gst/registries/gstlibxmlregistry.c (gst_xml_registry_get_property): Fix memory leak. g_value_set_string already does ... Original commit message from CVS: * gst/registries/gstlibxmlregistry.c (gst_xml_registry_get_property): Fix memory leak. g_value_set_string already does g_strdup. --- ChangeLog | 5 +++++ common | 2 +- gst/registries/gstlibxmlregistry.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0c084d44a4..76195db807 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-06-19 Luca Ognibene + + * gst/registries/gstlibxmlregistry.c (gst_xml_registry_get_property): + Fix memory leak. g_value_set_string already does g_strdup. + 2005-06-16 Tim-Philipp Müller * gst/gsturi.c: (gst_element_make_from_uri): diff --git a/common b/common index 495d6e30b3..d6e46b214f 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 495d6e30b3e513aebbc98467707c609c49ea654d +Subproject commit d6e46b214fac0ecb46010ff522af2f7653e1c18e diff --git a/gst/registries/gstlibxmlregistry.c b/gst/registries/gstlibxmlregistry.c index 34c2a2b018..c2f3f439d5 100644 --- a/gst/registries/gstlibxmlregistry.c +++ b/gst/registries/gstlibxmlregistry.c @@ -241,7 +241,7 @@ gst_xml_registry_get_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_LOCATION: - g_value_set_string (value, g_strdup (registry->location)); + g_value_set_string (value, registry->location); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);