Commit 9ff62a89 authored by Francois Cartegnie's avatar Francois Cartegnie

access: archive: implicitely call close

Unlike documentation says archive_free
 doesn't call close in every circumstances.
parent b430a05e
......@@ -296,7 +296,10 @@ void AccessClose(vlc_object_t *p_object)
access_sys_t *p_sys = p_access->p_sys;
if (p_sys->p_archive)
{
archive_read_close(p_sys->p_archive);
archive_read_free(p_sys->p_archive);
}
free(p_sys->psz_uri);
free(p_sys);
......
......@@ -217,7 +217,10 @@ void StreamClose(vlc_object_t *object)
stream_sys_t *p_sys = p_stream->p_sys;
if (p_sys->p_archive)
{
archive_read_close(p_sys->p_archive);
archive_read_free(p_sys->p_archive);
}
free(p_sys);
}
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