View Single Post
Old 24th May 2019, 21:52   #8  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,496
Quote:
Originally Posted by StainlessS View Post
Code:
delete [] cache;
The [] bit causes it to call destructor on each element of the array.
That was the answer! Thanks. Not that it needs to cause destruction of each element, but it seems that syntax is required if new was used to create an array with [].
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote