Issue #2803: fixed RenderTextureTest's memory leaking

fixed RenderTextureTest's memory leaking