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.
This commit is contained in:
Luca Ognibene 2005-06-19 10:55:42 +00:00
parent 9df6134df1
commit 802f77d9ad
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-06-19 Luca Ognibene <luogni@tin.it>
* 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 <tim at centricular dot net> 2005-06-16 Tim-Philipp Müller <tim at centricular dot net>
* gst/gsturi.c: (gst_element_make_from_uri): * gst/gsturi.c: (gst_element_make_from_uri):

2
common

@ -1 +1 @@
Subproject commit 495d6e30b3e513aebbc98467707c609c49ea654d Subproject commit d6e46b214fac0ecb46010ff522af2f7653e1c18e

View file

@ -241,7 +241,7 @@ gst_xml_registry_get_property (GObject * object, guint prop_id,
switch (prop_id) { switch (prop_id) {
case PROP_LOCATION: case PROP_LOCATION:
g_value_set_string (value, g_strdup (registry->location)); g_value_set_string (value, registry->location);
break; break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);