diff --git a/src/decoder/plugins/AudiofileDecoderPlugin.cxx b/src/decoder/plugins/AudiofileDecoderPlugin.cxx index 6a555abaf..3f2ee77c0 100644 --- a/src/decoder/plugins/AudiofileDecoderPlugin.cxx +++ b/src/decoder/plugins/AudiofileDecoderPlugin.cxx @@ -129,7 +129,7 @@ audiofile_file_seek(AFvirtualfile *vfile, AFfileoffset _offset, static AFvirtualfile * setup_virtual_fops(AudioFileInputStream &afis) noexcept { - AFvirtualfile *vf = new AFvirtualfile(); + AFvirtualfile *vf = (AFvirtualfile *)malloc(sizeof(*vf)); vf->closure = &afis; vf->write = nullptr; vf->read = audiofile_file_read;