title: struct with list<..> in 2 dim. dynamic array segfaults on delete
body: <p>for a little project i wanted to use a struct with an stl container in it.
  This thingy is then packet into a dynamic 2 dim. array, but when i try to delete it,
  it segfaults.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>struct cell{
      list&lt;pair&lt;double, double&gt; &gt; alist;
  
  };
  int main()
  {
     struct cell ** myAr = new cell*[5];
     for(int i = 0; i &lt; 5; ++i)
        myAr[i] = new cell[5];
  
     for(int j = 0; j &lt; 5; ++j)
        delete myAr[j];
     delete myAr; 
  
     return 0;
  }
  </code></pre>
  
  <p>Can anyone help me with this?
  Thanks in advance.
  Flo.</p>