dtlsenc: Fix memory leak while setting connection-id

https://bugzilla.gnome.org/show_bug.cgi?id=749318
This commit is contained in:
Jose Antonio Santos Cadenas 2015-05-13 15:33:49 +02:00 committed by Sebastian Dröge
parent 3c3d6e8828
commit 6b0183b7bf

View file

@ -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: