diff --git a/stepmania/src/RageSoundReader_Vorbisfile.cpp b/stepmania/src/RageSoundReader_Vorbisfile.cpp index 14a27ec9fc..64dd9bc962 100644 --- a/stepmania/src/RageSoundReader_Vorbisfile.cpp +++ b/stepmania/src/RageSoundReader_Vorbisfile.cpp @@ -56,7 +56,8 @@ static int OggRageFile_seek_func( void *datasource, ogg_int64_t offset, int when static int OggRageFile_close_func( void *datasource ) { - delete datasource; + RageFile *f = (RageFile *) datasource; + delete f; return 0; }