title: Does delete need to be used for new'd arrays created in vector?
body: <p>I'm trying to create some dynamic arrays for a void** data array.</p>
  
  <pre><code>std::vector&lt;void*&gt; data;
  data.push_back(new double[1024]);  // array of doubles
  data.push_back(new short[1024]);   // array of shorts
  </code></pre>
  
  <p>For clean up should I just use </p>
  
  <pre><code>data.clear();
  </code></pre>
  
  <p>Or do each of the new(s) need to be deleted and if so, how is that done?    </p>