Commit b706620b authored by Laurent Aimar's avatar Laurent Aimar

Fixed a memleak in cdda.

parent 55e3dca3
......@@ -245,6 +245,7 @@ static int Open( vlc_object_t *p_this )
return VLC_SUCCESS;
error:
free( p_sys->p_sectors );
ioctl_Close( VLC_OBJECT(p_access), p_sys->vcddev );
free( p_sys );
return VLC_EGENERIC;
......@@ -257,6 +258,8 @@ static void Close( vlc_object_t *p_this )
{
access_t *p_access = (access_t *)p_this;
access_sys_t *p_sys = p_access->p_sys;
free( p_sys->p_sectors );
ioctl_Close( p_this, p_sys->vcddev );
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