I have this class definition:
class FlashStream
{
public:
explicit FlashStream(const char * url, vector * headers, vector * dat
Putting copies of objects in vector/map etc. are bad idea. The destructor called when the temporary objects get destroyed. The destructor for the objects will be again called whenever the Vector/Map resizes or rearranges.
To avoid those you should store pointer to those objects. You may like to use shared_ptrs here.