| @@ -183,7 +183,9 @@ public: | |||||
| if (numChannels < (int) numElementsInArray (preallocatedChannelSpace)) | if (numChannels < (int) numElementsInArray (preallocatedChannelSpace)) | ||||
| { | { | ||||
| channels = preallocatedChannelSpace; | channels = preallocatedChannelSpace; | ||||
| memcpy (preallocatedChannelSpace, other.channels, sizeof (preallocatedChannelSpace)); | |||||
| for (int i = 0; i < numChannels; ++i) | |||||
| preallocatedChannelSpace[i] = other.channels[i]; | |||||
| } | } | ||||
| else | else | ||||
| { | { | ||||
| @@ -207,7 +209,9 @@ public: | |||||
| if (numChannels < (int) numElementsInArray (preallocatedChannelSpace)) | if (numChannels < (int) numElementsInArray (preallocatedChannelSpace)) | ||||
| { | { | ||||
| channels = preallocatedChannelSpace; | channels = preallocatedChannelSpace; | ||||
| memcpy (preallocatedChannelSpace, other.channels, sizeof (preallocatedChannelSpace)); | |||||
| for (int i = 0; i < numChannels; ++i) | |||||
| preallocatedChannelSpace[i] = other.channels[i]; | |||||
| } | } | ||||
| else | else | ||||
| { | { | ||||