Releasing memory explicitly to avoid memory warnings
Merge remote-tracking branch 'origin/sdk1.2' into sdk1.2