Commit 936f89a0 authored by Naveen Cherukuri's avatar Naveen Cherukuri Committed by Guillaume Desmottes
Browse files

kmssink: Avoiding get_property to take ownership of object members

Double free will happen if application frees string retuned by _get_property
parent 0e7e425b
......@@ -1785,10 +1785,10 @@ gst_kms_sink_get_property (GObject * object, guint prop_id,
switch (prop_id) {
case PROP_DRIVER_NAME:
g_value_take_string (value, sink->devname);
g_value_set_string (value, sink->devname);
break;
case PROP_BUS_ID:
g_value_take_string (value, sink->bus_id);
g_value_set_string (value, sink->bus_id);
break;
case PROP_CONNECTOR_ID:
g_value_set_int (value, sink->conn_id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment