converter: fix memleaks caused by redeclaration of the buffer and dspbuffer (kudos to Lithopsian for spotting this)