fix for memory leak with Core Foundation code
Merge remote-tracking branch 'origin/master'