Fixed memory leak on the viewer
Just a bracket out of place