mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
kmssink: Free devname before setting it
This avoids leaking the devname if the property is set twice.
This commit is contained in:
parent
d949de49f3
commit
b7b7948e5f
1 changed files with 1 additions and 0 deletions
|
@ -1433,6 +1433,7 @@ gst_kms_sink_set_property (GObject * object, guint prop_id,
|
|||
|
||||
switch (prop_id) {
|
||||
case PROP_DRIVER_NAME:
|
||||
g_free (sink->devname);
|
||||
sink->devname = g_value_dup_string (value);
|
||||
break;
|
||||
case PROP_CONNECTOR_ID:
|
||||
|
|
Loading…
Reference in a new issue