mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
gst/gstindex.c: Fix memory leaks and refcount issues (#168493).
Original commit message from CVS: * gst/gstindex.c: (gst_index_factory_new): Fix memory leaks and refcount issues (#168493).
This commit is contained in:
parent
e1dc97fe44
commit
d25234af09
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-03-11 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/gstindex.c: (gst_index_factory_new):
|
||||
Fix memory leaks and refcount issues (#168493).
|
||||
|
||||
2005-03-11 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* tools/gst-launch.1.in:
|
||||
|
|
|
@ -914,11 +914,12 @@ gst_index_factory_new (const gchar * name, const gchar * longdesc, GType type)
|
|||
factory = gst_index_factory_find (name);
|
||||
if (!factory) {
|
||||
factory = GST_INDEX_FACTORY (g_object_new (GST_TYPE_INDEX_FACTORY, NULL));
|
||||
GST_PLUGIN_FEATURE_NAME (factory) = g_strdup (name);
|
||||
} else {
|
||||
gst_object_ref (GST_OBJECT (factory));
|
||||
}
|
||||
|
||||
GST_PLUGIN_FEATURE_NAME (factory) = g_strdup (name);
|
||||
if (factory->longdesc)
|
||||
g_free (factory->longdesc);
|
||||
g_free (factory->longdesc);
|
||||
factory->longdesc = g_strdup (longdesc);
|
||||
factory->type = type;
|
||||
|
||||
|
|
Loading…
Reference in a new issue