Destructor not deleting allocated memory : <p>I have a class that includes a std::uint_8 pointer and the destructor should be called to delete the allocated memory. The issue I'm having is that a complier error occurs and states that the memory was not allocated, but I know I allocated it in my default constructor.
Here's my default constructor:</p>

<pre><code>BigInteger::BigInteger() {
  unsigned char aArray [4];
  aArray[0] = 0;
  m_number = new unsigned char[4]
  m_number = aArray;
  m_digitCount = 0;
  m_sizeReserved = 4;
}
</code></pre>

<p>and here's my destructor: </p>

<pre><code>BigInteger::~BigInteger() {
    delete [] m_number;
}
</code></pre>
