rtsp-auth: fix default token leak

This commit is contained in:
Nicola Murino 2019-12-12 17:56:18 +01:00
parent 8d4a9f37e5
commit a547e2b3c8

View file

@ -214,6 +214,8 @@ gst_rtsp_auth_finalize (GObject * obj)
g_hash_table_unref (priv->basic); g_hash_table_unref (priv->basic);
g_hash_table_unref (priv->digest); g_hash_table_unref (priv->digest);
g_hash_table_unref (priv->nonces); g_hash_table_unref (priv->nonces);
if (priv->default_token)
gst_rtsp_token_unref (priv->default_token);
g_mutex_clear (&priv->lock); g_mutex_clear (&priv->lock);
g_free (priv->realm); g_free (priv->realm);