Fixed a JSBridge potential memory leak