mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
ladspa: don't reference freed pointer when building portnames
This commit is contained in:
parent
277699bd2a
commit
c4190684c5
1 changed files with 4 additions and 1 deletions
|
@ -314,14 +314,17 @@ gst_ladspa_class_get_param_name (GstLADSPAClass * klass, gint portnum)
|
|||
gint n = 1;
|
||||
gchar *nret = g_strdup_printf ("%s-%d", ret, n++);
|
||||
|
||||
g_free (ret);
|
||||
while (g_object_class_find_property (G_OBJECT_CLASS (klass), nret)) {
|
||||
g_free (nret);
|
||||
nret = g_strdup_printf ("%s-%d", ret, n++);
|
||||
}
|
||||
g_free (ret);
|
||||
ret = nret;
|
||||
}
|
||||
|
||||
GST_DEBUG ("built property name '%s' from port name '%s'", ret,
|
||||
desc->PortNames[portnum]);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue