comparison src/adplug/core/temuopl.cxx @ 869:48ebfc711a8c trunk

[svn] - guard some potentially improper double delete [] usage
author nenolod
date Fri, 16 Mar 2007 21:08:34 -0700
parents 3da1b8942b8b
children 4709ce4e209e
comparison
equal deleted inserted replaced
868:d889a20dd9b5 869:48ebfc711a8c
57 } 57 }
58 58
59 for(i=0;i<(stereo ? samples*2 : samples);i++) 59 for(i=0;i<(stereo ? samples*2 : samples);i++)
60 ((char *)buf)[i] = (tempbuf[i] >> 8) ^ 0x80; 60 ((char *)buf)[i] = (tempbuf[i] >> 8) ^ 0x80;
61 61
62 delete [] tempbuf; 62 delete [] tempbuf; tempbuf = 0;
63 } 63 }
64 } 64 }
65 65
66 void CTemuopl::write(int reg, int val) 66 void CTemuopl::write(int reg, int val)
67 { 67 {