title: Memory Leak, source: float** binsRowPtrs = new float *[_nbins];
body: <p>How do I delete this properly?</p>
  
  <pre><code>float** binsRowPtrs = new float *[_nbins];
  </code></pre>
  
  <p>The items are not dynamic created with new.</p>
  
  <pre><code>float** binsRowPtrs = new float *[_nbins];
  for (int i = 0; i &lt; _nbins ;i++)
  {
      binsRowPtrs[i] = (float*) (bins[i].row(y).data);
  }
  </code></pre>