Should I call SDL_DestroyWindow if window creation fails?
<p>Should I call SDL_DestroyWindow if Window Creation fails? I have the following code below:</p>

<pre><code>if(this-&gt;Window == NULL)
{
    std::cout &lt;&lt; "Error: Can't create the SDL Window \n" &lt;&lt; SDL_GetError() &lt;&lt; "\n";
    SDL_DestroyWindow(this-&gt;Window);

    std::exit(EXIT_FAILURE);        
}
</code></pre>

<p>Is it wrong?</p>