added the missing calls to ReleaseString() - fixes #4