Structure I created:
struct VideoSample { const unsigned char * buffer; int len; }; VideoSample * newVideoSample = new VideoSample;
In C++ a structure is the exact same as a class except everything is public by default, where a class is private by default. So a structure can have a destructor and is freed with delete.