View Single Post
Old 23rd May 2019, 23:41   #6  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Oops, yes, I did not notice that in your source, I should have.

Code:
cache = new PVideoFrame[end - start];
You have to use below syntax to delete, when allocating array as above, eg [blue part]

Code:
delete [] cache;
The [] bit causes it to call destructor on each element of the array.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 23rd May 2019 at 23:47.
StainlessS is offline   Reply With Quote