Will this specific example produce memory leaks?
<pre><code>class A // blah blah generic abstracty whatever
{
  public:
  A();
  ~A();
};

class B
{
  public:
  B();
  ~B();

  private:
  A* a[8];
};

B::B()
{
  for(int x = 0; x &lt; 8; x++)
  {
    a[x] = new A;
  }
}

B::~B()
{
  for(int x = 0; x &lt; 8; x++)
  {
    delete a[x];
  }
}
</code></pre>

<p>I'm just curious if the above code will leak on it's own. Is there any situation where it could leak (aside from if I didn't call delete properly)?</p>

<p>Thanks.</p>
