Commit 5b284975 authored by Francois Cartegnie's avatar Francois Cartegnie

stream: call pf_destroy first when deleting stream

parent 45e9b837
...@@ -90,14 +90,15 @@ void stream_Delete(stream_t *s) ...@@ -90,14 +90,15 @@ void stream_Delete(stream_t *s)
{ {
stream_priv_t *priv = (stream_priv_t *)s; stream_priv_t *priv = (stream_priv_t *)s;
if (s->pf_destroy != NULL)
s->pf_destroy(s);
if (priv->text.conv != (vlc_iconv_t)(-1)) if (priv->text.conv != (vlc_iconv_t)(-1))
vlc_iconv_close(priv->text.conv); vlc_iconv_close(priv->text.conv);
if (priv->peek != NULL) if (priv->peek != NULL)
block_Release(priv->peek); block_Release(priv->peek);
if (s->pf_destroy != NULL)
s->pf_destroy(s);
free(s->psz_url); free(s->psz_url);
vlc_object_release(s); vlc_object_release(s);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment