Added render target memory leak detection and fixed a dormant render
target bug.