Change GCRetain() and GCRelease() order
Merge pull request #2419 from ke-yu/fix_magn4605

Change GCRetain() and GCRelease() order in BuildInFunctionEndPoint