fix memleak on open fail
This commit is contained in:
@@ -119,6 +119,8 @@ SoundReader_FileReader::OpenResult RageSoundReader_Vorbisfile::Open(CString file
|
|||||||
{
|
{
|
||||||
SetError( ov_ssprintf(ret, "ov_open failed") );
|
SetError( ov_ssprintf(ret, "ov_open failed") );
|
||||||
delete f;
|
delete f;
|
||||||
|
delete vf;
|
||||||
|
vf = NULL;
|
||||||
switch( ret )
|
switch( ret )
|
||||||
{
|
{
|
||||||
case OV_ENOTVORBIS:
|
case OV_ENOTVORBIS:
|
||||||
|
|||||||
Reference in New Issue
Block a user