frei0r: Free various props before being set

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8648>
This commit is contained in:
Doug Nazar 2025-03-14 21:59:13 -04:00 committed by GStreamer Marge Bot
parent afd979c9e4
commit c2cb94a421

View file

@ -415,6 +415,7 @@ gst_frei0r_set_property (f0r_instance_t * instance, GstFrei0rFuncTable * ftable,
/* Copies the string */
if (instance)
ftable->set_param_value (instance, s, prop->prop_idx);
g_free (property_cache[prop->prop_idx].data.s);
property_cache[prop->prop_idx].data.s = s;
break;
}