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:
Doug Nazar 2025-03-14 22:01:05 -04:00 committed by GStreamer Marge Bot
parent c2cb94a421
commit 2e96ed13de
2 changed files with 3 additions and 1 deletions

View file

@ -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);

View file

@ -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);
}