Do I need to delete this object? : <p>In MFC application using Direct2D I have very simple code:<br>
//in ctor:  </p>

<pre><code>EnableD2DSupport();
m_pBlackBrush = new CD2DSolidColorBrush(GetRenderTarget(), D2D1::ColorF(D2D1::ColorF::Black));  
</code></pre>

<p>Now the question is, am I supposed to call delete on m_pBlackBrush? If so where? I've tried to call delete on it in destructor but I'm getting error thrown in my face saying that there is write access violation. Anyone knows if am I supposed to delete this brush or simply leave it (which seems like rather odd idea)?</p>
