On deletion is not sufficient. You could store the pointer in any variable and assign it later to the render target / whatever code may use it and crash.


Always learn from history, to be sure you make the same mistakes again...