Fix non-RefCounted object binding leak (#942)