Quote:
Originally Posted by Wilbert
If you set it to NULL there is nothing to delete. I guess 'delete cache[];' should work since it's an array (but it will not do anything in this case).
|
"delete cache[];" is apparently not valid syntax. As I understand it, "delete cache;" should call delete on all the PVideoFrames in the array, but since they have been set to NULL, I would have expected it to do nothing. Something is trying to
something, though. Maybe that kind of NULL safety isn't a feature of smart pointers, because simply setting them to NULL is equivalent to deletion (or so I understand).