mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-05 15:49:54 +00:00
rfbsrc: Free various props before being set & during cleanup
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8648>
This commit is contained in:
parent
c2cb94a421
commit
2e96ed13de
2 changed files with 3 additions and 1 deletions
|
@ -287,7 +287,8 @@ gst_rfb_src_set_property (GObject * object, guint prop_id,
|
|||
break;
|
||||
}
|
||||
case PROP_HOST:
|
||||
src->host = g_value_dup_string (value);;
|
||||
g_free (src->host);
|
||||
src->host = g_value_dup_string (value);
|
||||
break;
|
||||
case PROP_PORT:
|
||||
src->port = g_value_get_int (value);
|
||||
|
|
|
@ -83,6 +83,7 @@ rfb_decoder_free (RfbDecoder * decoder)
|
|||
g_clear_object (&decoder->socket_client);
|
||||
g_clear_object (&decoder->cancellable);
|
||||
g_mutex_clear (&decoder->write_lock);
|
||||
g_free (decoder->password);
|
||||
g_free (decoder);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue