Missing lifetime error?

You're running into the dangerous mix of unsafe pointers and automatic destruction: