fix a mem leak by calling the corect ReleaseString method