mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
dtlsenc: Fix memory leak while setting connection-id
https://bugzilla.gnome.org/show_bug.cgi?id=749318
This commit is contained in:
parent
3c3d6e8828
commit
6b0183b7bf
1 changed files with 4 additions and 0 deletions
|
@ -230,6 +230,10 @@ gst_dtls_enc_set_property (GObject * object, guint prop_id,
|
|||
|
||||
switch (prop_id) {
|
||||
case PROP_CONNECTION_ID:
|
||||
if (self->connection_id != NULL) {
|
||||
g_free (self->connection_id);
|
||||
self->connection_id = NULL;
|
||||
}
|
||||
self->connection_id = g_value_dup_string (value);
|
||||
break;
|
||||
case PROP_IS_CLIENT:
|
||||
|
|
Loading…
Reference in a new issue