Release unused frameRef

A partial fix for issue #22