Commits

Alex Szpakowski committed 707c723

Make sure SoundData objects aren't initialized with garbage sample values

  • Participants
  • Parent commits cb89a7b

Comments (0)

Files changed (1)

File src/modules/sound/SoundData.cpp

 
 	if (newData)
 		memcpy(data, newData, size);
+	else
+		memset(data, 0, size);
 }
 
 void *SoundData::getData() const